Skip to content

Commit 04de1e4

Browse files
committed
Handle the case where no module found
1 parent a2e9928 commit 04de1e4

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/plot_api/plot_api.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2574,7 +2574,7 @@ Plotly.transition = function(gd, data, layout, traceIndices, transitionConfig) {
25742574
var trace = gd._fullData[traceIdx];
25752575
var module = trace._module;
25762576

2577-
if(!module.animatable) {
2577+
if(!module || !module.animatable) {
25782578
continue;
25792579
}
25802580

@@ -2660,6 +2660,8 @@ Plotly.transition = function(gd, data, layout, traceIndices, transitionConfig) {
26602660
var contFull = gd._fullData[traceIdx];
26612661
var module = contFull._module;
26622662

2663+
if (!module) continue;
2664+
26632665
if(!module.animatable) {
26642666
var thisUpdate = {};
26652667

0 commit comments

Comments
 (0)