Skip to content

Commit

Permalink
fix: try
Browse files Browse the repository at this point in the history
  • Loading branch information
jimmykane committed Nov 24, 2020
1 parent 41c70d1 commit c595676
Showing 1 changed file with 16 additions and 11 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -170,17 +170,22 @@ export class TileChartActionsComponent extends TileActionsAbstractDirective impl
throw new Error('Component needs user');
}

const speedUnits = [];
this.user.settings.unitSettings.speedUnits.forEach(key => {
const unit = SpeedUnitsToGradeAdjustedSpeedUnits[key];
speedUnits.push(SpeedAvg['DataSpeedAvg' + unit].type);
speedUnits.push(SpeedMin['DataSpeedMin' + unit].type);
speedUnits.push(SpeedMax['DataSpeedMax' + unit].type);
});
this.dataGroups.push({
name: 'Speed',
data: speedUnits
});
// See https://sentry.io/organizations/dimitrios-kanellopoulos/issues/2051985404/?project=1194244&referrer=slack
try {
const speedUnits = [];
this.user.settings.unitSettings.speedUnits.forEach(key => {
const unit = SpeedUnitsToGradeAdjustedSpeedUnits[key];
speedUnits.push(SpeedAvg['DataSpeedAvg' + unit].type);
speedUnits.push(SpeedMin['DataSpeedMin' + unit].type);
speedUnits.push(SpeedMax['DataSpeedMax' + unit].type);
});
this.dataGroups.push({
name: 'Speed',
data: speedUnits
});
} catch (e) {
// Noop
}
}
}

Expand Down

0 comments on commit c595676

Please sign in to comment.