Skip to content
Commit 87ae5f3b authored by Andreas Fernandez's avatar Andreas Fernandez Committed by Benni Mack
Browse files

[BUGFIX] Wrap action callback in Promise

The changes of #99176 and #99189 logically conflicted with each other.
The former resets the state of the DeferredAction by using `finally()`,
while the latter one introduces special handling when returning anything
that's not a Promise, leading to issues due to the bound `finally()`
call.

The callback execution itself is now resolved with a new Promise object,
making `finally()` functional again.

Resolves: #99195
Related: #99176
Related: #99189
Releases: main
Change-Id: I5507ad75b442b074fc477457ad23df49d6672d51
Reviewed-on: https://review.typo3.org/c/Packages/TYPO3.CMS/+/76824


Tested-by: default avatarcore-ci <typo3@b13.com>
Tested-by: default avatarBenni Mack <benni@typo3.org>
Reviewed-by: default avatarBenni Mack <benni@typo3.org>
parent a97089d6
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment