Skip to content

Commit

Permalink
tslint
Browse files Browse the repository at this point in the history
  • Loading branch information
nreese committed Jun 16, 2020
1 parent 84e0c98 commit df845cd
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ function getCategoryLabel(category: LAYER_WIZARD_CATEGORY): string {
});
}

throw new Exception(`Unexpected category: ${category}`);
throw new Error(`Unexpected category: ${category}`);
}

export class LayerWizardSelect extends Component<Props, State> {
Expand Down Expand Up @@ -139,7 +139,7 @@ export class LayerWizardSelect extends Component<Props, State> {
const wizardCards = this.state.layerWizards
.filter((layerWizard: LayerWizard) => {
return this.state.selectedCategory
? layerWizard.categories.includes(this.state.selectedCategory)
? layerWizard.categories.includes(this.state.selectedCategory!)
: true;
})
.map((layerWizard: LayerWizard) => {
Expand Down

0 comments on commit df845cd

Please sign in to comment.