Skip to content
This repository has been archived by the owner on Apr 21, 2022. It is now read-only.

Commit

Permalink
getting around TS errors
Browse files Browse the repository at this point in the history
  • Loading branch information
noahamac committed Jan 9, 2020
1 parent 468b8b7 commit 00d336f
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/examples/liquid_fill_gauge/liquid_fill_gauge.ts
Original file line number Diff line number Diff line change
Expand Up @@ -222,9 +222,9 @@ const vis: LiquidFillGaugeVisualization = {
if (gaugeConfig.maxValue <= 0) {
this.addError({ group: 'config', title: 'Max value must be greater than zero.' })
return
} else if (data.length == 0) {
this.addError({ title: 'No results.' });
return;
} else if (data.length === 0) {
this.addError({ title: 'No results.' })
return
} else {
this.clearErrors('config')
}
Expand Down

0 comments on commit 00d336f

Please sign in to comment.