Skip to content

Commit 478d421

Browse files
committed
fix issue 5290 - check before slice
1 parent 4a3fc8e commit 478d421

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/plot_api/plot_api.js

+3-1
Original file line numberDiff line numberDiff line change
@@ -1948,7 +1948,9 @@ function axRangeSupplyDefaultsByPass(gd, flags, specs) {
19481948
var axIn = gd.layout[axName];
19491949
var axOut = fullLayout[axName];
19501950
axOut.autorange = axIn.autorange;
1951-
axOut.range = axIn.range.slice();
1951+
if(axIn.range) {
1952+
axOut.range = axIn.range.slice();
1953+
}
19521954
axOut.cleanRange();
19531955

19541956
if(axOut._matchGroup) {

0 commit comments

Comments
 (0)