We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 84fb86a commit 24d3537Copy full SHA for 24d3537
src/EditorControls.js
@@ -156,7 +156,10 @@ class EditorControls extends Component {
156
const prevTrace = graphDiv.data[graphDiv.data.length - 1];
157
const prevTraceType = plotlyTraceToCustomTrace(prevTrace);
158
graphDiv.data.push(
159
- traceTypeToPlotlyInitFigure(prevTraceType, prevTrace.type.endsWith('gl') ? 'gl' : '')
+ traceTypeToPlotlyInitFigure(
160
+ prevTraceType,
161
+ prevTrace.type && prevTrace.type.endsWith('gl') ? 'gl' : ''
162
+ )
163
);
164
}
165
0 commit comments