Skip to content

Commit b365374

Browse files
committed
more strict check for polar subplot existence
1 parent 9c4c9bf commit b365374

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/plot_api/plot_api.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1946,7 +1946,7 @@ function _relayout(gd, aobj) {
19461946

19471947
// clear polar view initial stash for radial range so that
19481948
// value get recomputed in correct units
1949-
if(fullLayout._subplots.polar && fullLayout[p.parts[0]]) {
1949+
if(Array.isArray(fullLayout._subplots.polar) && fullLayout._subplots.polar.length && fullLayout[p.parts[0]]) {
19501950
delete fullLayout[p.parts[0]]._subplot.viewInitial['radialaxis.range'];
19511951
}
19521952

0 commit comments

Comments
 (0)