From d931a8287d09dfc40238fe7d3cf0d1f36a5f221b Mon Sep 17 00:00:00 2001 From: JohnPeng47 Date: Sun, 21 Oct 2018 14:52:50 -0400 Subject: [PATCH] feat(core): changed threshold config format, code refactor --- packages/core/src/base-axis-chart.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/core/src/base-axis-chart.ts b/packages/core/src/base-axis-chart.ts index b2f16e7bd5..4d8b758d3f 100644 --- a/packages/core/src/base-axis-chart.ts +++ b/packages/core/src/base-axis-chart.ts @@ -409,8 +409,8 @@ export class BaseAxisChart extends BaseChart { if (thresholds && thresholds.length > 0) { const thresholdTickValues = thresholds.map(e => { - if (e.value) return e.value; - console.error("Missing threshold value: ", e); + if (e.value) { return e.value; } + console.error("Missing threshold value: ", e); }); // for some reason tickValues ignore the first element of the array // passed to it so this workaround