Skip to content

Commit 52f53ce

Browse files
committed
Merge remote-tracking branch 'origin/master' into smith
2 parents 0063041 + 587d86c commit 52f53ce

File tree

3 files changed

+6
-5
lines changed

3 files changed

+6
-5
lines changed

draftlogs/5878_fix.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
- Fix invalid call to `lib.promiseError` in lib.syncOrAsync [[#5878](https://github.com/plotly/plotly.js/pull/5878)],
2+
with thanks to @jklimke for the contribution!

package-lock.json

Lines changed: 3 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/lib/index.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -455,8 +455,7 @@ lib.syncOrAsync = function(sequence, arg, finalStep) {
455455
ret = fni(arg);
456456

457457
if(ret && ret.then) {
458-
return ret.then(continueAsync)
459-
.then(undefined, lib.promiseError);
458+
return ret.then(continueAsync);
460459
}
461460
}
462461

0 commit comments

Comments
 (0)