Skip to content

Commit 27c0ac4

Browse files
committed
early return with void _subplots e.g. afterAll in transition test
1 parent 832ebc2 commit 27c0ac4

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/plots/cartesian/index.js

+1
Original file line numberDiff line numberDiff line change
@@ -126,6 +126,7 @@ exports.finalizeSubplots = function(layoutIn, layoutOut) {
126126
*/
127127
exports.plot = function(gd, traces, transitionOpts, makeOnCompleteCallback) {
128128
var fullLayout = gd._fullLayout;
129+
if(!fullLayout._subplots) return;
129130
var subplots = fullLayout._subplots.cartesian;
130131
var calcdata = gd.calcdata;
131132
var i;

0 commit comments

Comments
 (0)