Skip to content

Commit

Permalink
fix: parse crashTypeId as number (#106)
Browse files Browse the repository at this point in the history
  • Loading branch information
bobbyg603 authored May 23, 2023
1 parent 6fc8889 commit 91515b0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/crashes/crashes-api-row/crashes-api-row.ts
Original file line number Diff line number Diff line change
Expand Up @@ -91,13 +91,13 @@ export class CrashesApiRow implements CrashDataWithMappedProperties {

constructor(rawApiRow: CrashesApiResponseRow) {
this.id = Number(rawApiRow.id);
this.groupByCount = Number(rawApiRow.groupByCount || 0);
this.groupByCount = Number(rawApiRow.groupByCount) || 0;
this.stackKey = rawApiRow.stackKey;
this.stackKeyId = Number(rawApiRow.stackKeyId);
this.stackId = Number(rawApiRow.stackId);
this.appName = rawApiRow.appName;
this.appVersion = rawApiRow.appVersion;
this.crashTypeId = rawApiRow.crashTypeId;
this.crashTypeId = Number(rawApiRow.crashTypeId) || 0;
this.appDescription = rawApiRow.appDescription;
this.userDescription = rawApiRow.userDescription;
this.user = rawApiRow.user;
Expand Down

0 comments on commit 91515b0

Please sign in to comment.