Skip to content

Commit f0f0247

Browse files
committed
plot: clear promise queue if one of them got rejected
1 parent b753de6 commit f0f0247

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/plot_api/plot_api.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -326,6 +326,9 @@ Plotly.plot = function(gd, data, layout, config) {
326326
// so that the caller doesn't care which route we took
327327
return Promise.all(gd._promises).then(function() {
328328
return gd;
329+
}, function() {
330+
// clear the promise queue if one of them got rejected
331+
gd._promises = [];
329332
});
330333
};
331334

0 commit comments

Comments
 (0)