From: Ben McCann <322311+benmccann@users.noreply.github.com> Date: Sat, 9 Nov 2019 00:59:44 +0000 (-0800) Subject: Fix undefined variable (#6699) X-Git-Tag: v3.0.0-alpha~255 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=46aff21a3d5b8391c1f0204b6fe2a33c20de8cd0;p=thirdparty%2FChart.js.git Fix undefined variable (#6699) --- diff --git a/src/core/core.scale.js b/src/core/core.scale.js index 82bd4a2a5..c1e589d21 100644 --- a/src/core/core.scale.js +++ b/src/core/core.scale.js @@ -400,7 +400,7 @@ class Scale extends Element { */ _getLabels() { var data = this.chart.data; - return this.options.labels || (this.isHorizontal() ? data.xLabels : data.yLabels) || data.labels; + return this.options.labels || (this.isHorizontal() ? data.xLabels : data.yLabels) || data.labels || []; } // These methods are ordered by lifecyle. Utilities then follow.