Skip to content

Commit 3405430

Browse files
committed
Handle the case where no module found
1 parent 5f9ce12 commit 3405430

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/plot_api/plot_api.js

+3-1
Original file line numberDiff line numberDiff line change
@@ -2572,7 +2572,7 @@ Plotly.transition = function(gd, data, layout, traceIndices, transitionConfig) {
25722572
var trace = gd._fullData[traceIdx];
25732573
var module = trace._module;
25742574

2575-
if(!module.animatable) {
2575+
if(!module || !module.animatable) {
25762576
continue;
25772577
}
25782578

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

2661+
if (!module) continue;
2662+
26612663
if(!module.animatable) {
26622664
var thisUpdate = {};
26632665

0 commit comments

Comments
 (0)