Skip to content

Commit 698fa4f

Browse files
committed
multiline if statements for better debugging
1 parent 0548db3 commit 698fa4f

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

src/plot_api/plot_api.js

+6-2
Original file line numberDiff line numberDiff line change
@@ -2492,9 +2492,13 @@ function getDiffFlags(oldContainer, newContainer, outerparts, opts) {
24922492
if(wasArray && nowArray) {
24932493
// don't try to diff two data arrays. If immutable we know the data changed,
24942494
// if not, assume it didn't and let `layout.datarevision` tell us if it did
2495-
if(immutable) flags.calc = true;
2495+
if(immutable) {
2496+
flags.calc = true;
2497+
}
2498+
}
2499+
else if(wasArray !== nowArray) {
2500+
flags.calc = true;
24962501
}
2497-
else if(wasArray !== nowArray) flags.calc = true;
24982502
else changed();
24992503
}
25002504
else if(wasArray && nowArray) {

0 commit comments

Comments
 (0)