refactor: split to make testing more sane
This commit is contained in:
parent
a899dfe659
commit
ad19a06eb4
|
@ -55,7 +55,8 @@ export class Actions extends decorate(Traversals) {
|
||||||
if (result instanceof Promise) {
|
if (result instanceof Promise) {
|
||||||
this._actionPromise = result;
|
this._actionPromise = result;
|
||||||
// Handle any errors.
|
// Handle any errors.
|
||||||
result.catch(console.error).finally(() => {
|
result.catch(console.error);
|
||||||
|
result.finally(() => {
|
||||||
// Finally, run the prologue.
|
// Finally, run the prologue.
|
||||||
this.prologue();
|
this.prologue();
|
||||||
});
|
});
|
||||||
|
|
Loading…
Reference in New Issue
Block a user