Skip to content

Commit 697a127

Browse files
committed
Preven errors on non-splom traces
1 parent 2a048a9 commit 697a127

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/traces/splom/base_plot.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,10 @@ function drag(gd) {
4141
var cd0 = cd[i][0];
4242
var trace = cd0.trace;
4343
var scene = cd0.t._scene;
44+
45+
// FIXME: this probably should not be called for non-splom traces
46+
if(!scene || !scene.matrixOptions) continue;
47+
4448
var opts = scene.matrixOptions;
4549

4650
if(trace.type === 'splom' && scene && scene.matrix) {

0 commit comments

Comments
 (0)