Skip to content

Commit 86f7687

Browse files
committed
do not add transforms container if fullTrace is no transform present
1 parent daecec2 commit 86f7687

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/plots/plots.js

+3-1
Original file line numberDiff line numberDiff line change
@@ -747,7 +747,9 @@ plots.supplyTraceDefaults = function(traceIn, traceIndex, layout) {
747747
};
748748

749749
function supplyTransformDefaults(traceIn, traceOut, layout) {
750-
var containerIn = traceIn.transforms || [],
750+
if(!Array.isArray(traceIn.transforms)) return;
751+
752+
var containerIn = traceIn.transforms,
751753
containerOut = traceOut.transforms = [];
752754

753755
for(var i = 0; i < containerIn.length; i++) {

0 commit comments

Comments
 (0)