Skip to content

Commit b70ae62

Browse files
fix(overmind): properly fix production action resolvement
1 parent 3a62624 commit b70ae62

File tree

1 file changed

+7
-4
lines changed
  • packages/node_modules/overmind/src

1 file changed

+7
-4
lines changed

packages/node_modules/overmind/src/index.ts

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -475,12 +475,15 @@ export class Overmind<ThisConfig extends IConfiguration>
475475
}
476476
)
477477
} else {
478-
action(
479-
this.createContext(execution, execution.getMutationTree()),
480-
value
478+
Promise.resolve(
479+
action(
480+
this.createContext(execution, execution.getMutationTree()),
481+
value
482+
)
481483
)
484+
.then(() => resolve())
485+
.catch(reject)
482486
this.eventHub.emit(EventType.ACTION_END, execution)
483-
resolve()
484487
}
485488
})
486489
} else {

0 commit comments

Comments
 (0)