We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 94be168 + ad7ea28 commit e139925Copy full SHA for e139925
src/plot_api/plot_api.js
@@ -364,7 +364,10 @@ function getGraphDiv(gd) {
364
365
// clear the promise queue if one of them got rejected
366
function clearPromiseQueue(gd) {
367
- Lib.log('Clearing previous rejected promises from queue.');
+ if(Array.isArray(gd._promises) && gd._promises.length > 0) {
368
+ Lib.log('Clearing previous rejected promises from queue.');
369
+ }
370
+
371
gd._promises = [];
372
}
373
0 commit comments