Skip to content

Commit 36859f1

Browse files
committed
make sure items inside array container set to null are honored in frames
- items set to undefined produce the same outcome as nestedProperty makes no distinctions between null and undefined
1 parent 174b640 commit 36859f1

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

src/plots/plots.js

+8-2
Original file line numberDiff line numberDiff line change
@@ -1563,8 +1563,14 @@ plots.extendObjectWithContainers = function(dest, src, containerPaths) {
15631563
for(i = 0; i < containerPaths.length; i++) {
15641564
containerProp = Lib.nestedProperty(expandedObj, containerPaths[i]);
15651565
containerVal = containerProp.get();
1566-
containerProp.set(null);
1567-
Lib.nestedProperty(containerObj, containerPaths[i]).set(containerVal);
1566+
1567+
if(containerVal === undefined) {
1568+
Lib.nestedProperty(containerObj, containerPaths[i]).set(null);
1569+
}
1570+
else {
1571+
containerProp.set(null);
1572+
Lib.nestedProperty(containerObj, containerPaths[i]).set(containerVal);
1573+
}
15681574
}
15691575
}
15701576

0 commit comments

Comments
 (0)