Skip to content

Commit

Permalink
New version 4.0.17 Read more https://github.com/xdan/jodit/blob/main/…
Browse files Browse the repository at this point in the history
  • Loading branch information
xdan committed Mar 1, 2024
1 parent 98b0f4d commit d4d9027
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 4 deletions.
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "jodit",
"version": "4.0.16",
"version": "4.0.17",
"description": "Jodit is awesome and usefully wysiwyg editor with filebrowser",
"main": "build/jodit.min.js",
"types": "./types/index.d.ts",
Expand Down
7 changes: 6 additions & 1 deletion src/core/helpers/utils/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,12 @@ export function callPromise(
callback: () => CanPromise<any>
): CanPromise<void> {
if (isPromise(condition)) {
return condition.finally(callback);
return condition
.then(
resp => resp,
() => null
)
.finally(callback);
}

return callback();
Expand Down

0 comments on commit d4d9027

Please sign in to comment.