8000 fix · Franciraldo/plotly.js@d1c4af8 · GitHub
[go: up one dir, main page]

Skip to content

Commit d1c4af8

Browse files
committed
fix
1 parent 6d1dbbc commit d1c4af8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/components/legend/draw.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ module.exports = function draw(gd, opts) {
3737

3838
// Check whether this is the main legend (ie. called without any opts)
3939
if(!opts) {
40-
opts = fullLayout.legend;
40+
opts = fullLayout.legend || {};
4141
opts._main = true;
4242
layer = fullLayout._infolayer;
4343
} else {

0 commit comments

Comments
 (0)
0