Skip to content

Commit 1a1da0d

Browse files
authored
Cast to empty array
1 parent 0ec992e commit 1a1da0d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/components/errorbars/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ errorBars.calc = require('./calc');
1919

2020
errorBars.calcFromTrace = function(trace, layout) {
2121
var x = trace.x || [],
22-
y = trace.y,
22+
y = trace.y || [],
2323
len = x.length || y.length;
2424

2525
var calcdataMock = new Array(len);

0 commit comments

Comments
 (0)