Skip to content

Commit a968e5b

Browse files
committed
Fix undefined variable
1 parent f0fb2c6 commit a968e5b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/core/core.scale.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -406,7 +406,7 @@ var Scale = Element.extend({
406406
*/
407407
_getLabels: function() {
408408
var data = this.chart.data;
409-
return this.options.labels || (this.isHorizontal() ? data.xLabels : data.yLabels) || data.labels;
409+
return this.options.labels || (this.isHorizontal() ? data.xLabels : data.yLabels) || data.labels || [];
410410
},
411411

412412
// These methods are ordered by lifecyle. Utilities then follow.

0 commit comments

Comments
 (0)