Skip to content

Commit 3a30ae1

Browse files
committed
don't try to remove selection elements when zoomlayer does not exist
1 parent de115d3 commit 3a30ae1

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/plots/cartesian/index.js

+3-1
Original file line numberDiff line numberDiff line change
@@ -186,7 +186,9 @@ exports.clean = function(newFullData, newFullLayout, oldFullData, oldFullLayout)
186186
}
187187

188188
// clean selection
189-
oldFullLayout._zoomlayer.selectAll('.select-outline').remove();
189+
if(oldFullLayout._zoomlayer) {
190+
oldFullLayout._zoomlayer.selectAll('.select-outline').remove();
191+
}
190192
};
191193

192194
exports.drawFramework = function(gd) {

0 commit comments

Comments
 (0)