diff --git a/draftlogs/5878_fix.md b/draftlogs/5878_fix.md new file mode 100644 index 00000000000..cd7b8f0ec6f --- /dev/null +++ b/draftlogs/5878_fix.md @@ -0,0 +1,2 @@ + - Fix invalid call to `lib.promiseError` in lib.syncOrAsync [[#5878](https://github.com/plotly/plotly.js/pull/5878)], + with thanks to @jklimke for the contribution! diff --git a/src/lib/index.js b/src/lib/index.js index d838ddfc948..5d97f2cfc89 100644 --- a/src/lib/index.js +++ b/src/lib/index.js @@ -455,8 +455,7 @@ lib.syncOrAsync = function(sequence, arg, finalStep) { ret = fni(arg); if(ret && ret.then) { - return ret.then(continueAsync) - .then(undefined, lib.promiseError); + return ret.then(continueAsync); } }