Skip to content

Commit dd9b6fc

Browse files
committed
Handle the case where no module found
1 parent 1c5c434 commit dd9b6fc

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
@@ -2566,7 +2566,7 @@ Plotly.transition = function(gd, data, layout, traceIndices, transitionConfig) {
25662566
var trace = gd._fullData[traceIdx];
25672567
var module = trace._module;
25682568

2569-
if(!module.animatable) {
2569+
if(!module || !module.animatable) {
25702570
continue;
25712571
}
25722572

@@ -2652,6 +2652,8 @@ Plotly.transition = function(gd, data, layout, traceIndices, transitionConfig) {
26522652
var contFull = gd._fullData[traceIdx];
26532653
var module = contFull._module;
26542654

2655+
if (!module) continue;
2656+
26552657
if(!module.animatable) {
26562658
var thisUpdate = {};
26572659

0 commit comments

Comments
 (0)