Fixing error when clearing big number (#6465)

This commit is contained in:
michellethomas
2018-11-29 18:52:49 -08:00
committed by GitHub
parent e715cdb9ac
commit 5261d8a9fe

View File

@@ -28,7 +28,7 @@ export default function transformProps(chartProps) {
let bigNumber;
let trendLineData;
const metricName = metric.label || metric;
const metricName = metric && metric.label ? metric.label : metric;
const compareLag = +compareLagInput || 0;
const supportTrendLine = vizType === 'big_number';
const supportAndShowTrendLine = supportTrendLine && showTrendLine;