Skip to content

Commit

Permalink
Merge pull request #5878 from 3dcl/promiseError-undefined
Browse files Browse the repository at this point in the history
removed invalid .then call using lib.promiseError which does not exis…
  • Loading branch information
archmoj authored Aug 5, 2021
2 parents e27ca3c + 1fa7b34 commit 9c06996
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 2 additions & 0 deletions draftlogs/5878_fix.md
Original file line number Diff line number Diff line change
@@ -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!
3 changes: 1 addition & 2 deletions src/lib/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
}

Expand Down

0 comments on commit 9c06996

Please sign in to comment.