Skip to content

Commit 808e35b

Browse files
committed
Add failsafe for clearExpandedTraceDefaultColors
1 parent 4398bd7 commit 808e35b

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/plots/plots.js

+2
Original file line numberDiff line numberDiff line change
@@ -683,6 +683,8 @@ plots.clearExpandedTraceDefaultColors = function(expandedTraces) {
683683
colorAttrs = [];
684684
path = [];
685685

686+
if (!trace || !trace._module) continue;
687+
686688
PlotSchema.crawl(trace._module.attributes, locateExpandedTraceAttrs);
687689

688690
for(j = 0; j < colorAttrs.length; j++) {

0 commit comments

Comments
 (0)