From 0ef0a3fd26f39df998c3e1ce295f4059a823182b Mon Sep 17 00:00:00 2001 From: Andrew Watkins Date: Wed, 11 Jul 2018 14:48:45 -0700 Subject: [PATCH] Fix test --- ui/src/shared/components/GaugeChart.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ui/src/shared/components/GaugeChart.tsx b/ui/src/shared/components/GaugeChart.tsx index 1e2fcb6dc..663feecc7 100644 --- a/ui/src/shared/components/GaugeChart.tsx +++ b/ui/src/shared/components/GaugeChart.tsx @@ -82,7 +82,7 @@ class GaugeChart extends PureComponent { const {lastValues} = getLastValues(data) let lastValue = _.get(lastValues, 0, 0) - if (lastValue === null) { + if (!lastValue) { return 0 }