Skip to content

Commit c44229f

Browse files
benmccannetimberg
authored andcommitted
Fix undefined variable (#6698)
1 parent a985fec commit c44229f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: src/core/core.scale.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -356,7 +356,7 @@ var Scale = Element.extend({
356356
*/
357357
_getLabels: function() {
358358
var data = this.chart.data;
359-
return this.options.labels || (this.isHorizontal() ? data.xLabels : data.yLabels) || data.labels;
359+
return this.options.labels || (this.isHorizontal() ? data.xLabels : data.yLabels) || data.labels || [];
360360
},
361361

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

0 commit comments

Comments
 (0)