Skip to content

Commit 70b10ff

Browse files
committed
add safe-guard in dragbox.js
1 parent 91431ec commit 70b10ff

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/plots/cartesian/dragbox.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -989,7 +989,7 @@ function zoomAxRanges(axList, r0Fraction, r1Fraction, updates, linkedAxes) {
989989
}
990990

991991
// zoom linked axes about their centers
992-
if(linkedAxes.length) {
992+
if(linkedAxes && linkedAxes.length) {
993993
var linkedR0Fraction = (r0Fraction + (1 - r1Fraction)) / 2;
994994
zoomAxRanges(linkedAxes, linkedR0Fraction, 1 - linkedR0Fraction, updates, [], []);
995995
}

0 commit comments

Comments
 (0)