Skip to content

Commit a20bbf9

Browse files
committed
add fallback for case where _plots is undefined
1 parent 448db40 commit a20bbf9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

shelly/plotlyjs/static/plotlyjs/src/graph_interact.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ fx.init = function(gd) {
7878

7979
if(fullLayout._hasGL3D || fullLayout._hasGeo || gd._context.staticPlot) return;
8080

81-
var subplots = Object.keys(fullLayout._plots).sort(function(a,b) {
81+
var subplots = Object.keys(fullLayout._plots || {}).sort(function(a,b) {
8282
// sort overlays last, then by x axis number, then y axis number
8383
if( (fullLayout._plots[a].mainplot && true) ===
8484
(fullLayout._plots[b].mainplot && true) ) {

0 commit comments

Comments
 (0)