Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 5ce2099

Browse files
committed
replace parts[1] with pleaf,
to handle case whers parts has only 1 entry.
1 parent b3059ac commit 5ce2099

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
@@ -2246,7 +2246,7 @@ Plotly.relayout = function relayout(gd, astr, val) {
22462246
else if(p.parts[0].indexOf('legend')!==-1) dolegend = true;
22472247
else if(ai.indexOf('title')!==-1) doticks = true;
22482248
else if(p.parts[0].indexOf('bgcolor')!==-1) dolayoutstyle = true;
2249-
else if(p.parts[1].indexOf('exponentbase' !== -1)) docalc = true;
2249+
else if(pleaf.indexOf('exponentbase' !== -1)) docalc = true;
22502250
else if(p.parts.length>1 &&
22512251
Lib.containsAny(p.parts[1], ['tick', 'exponent', 'grid', 'zeroline'])) {
22522252
doticks = true;

0 commit comments

Comments
 (0)