We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 367964f commit 4589dbfCopy full SHA for 4589dbf
packages/node_modules/overmind/src/operator.ts
@@ -23,13 +23,17 @@ export function stopDebugOperator(context, value) {
23
}
24
25
if (value instanceof Promise) {
26
- value.then((promiseValue) => {
27
- context.execution.emit(EventType.OPERATOR_END, {
28
- ...context.execution,
29
- result: safeValue(promiseValue),
30
- isAsync: true,
+ value
+ .then((promiseValue) => {
+ context.execution.emit(EventType.OPERATOR_END, {
+ ...context.execution,
+ result: safeValue(promiseValue),
31
+ isAsync: true,
32
+ })
33
34
+ .catch(() => {
35
+ // Make sure an error does not cause uncaught
36
})
- })
37
} else {
38
context.execution.emit(EventType.OPERATOR_END, {
39
...context.execution,
0 commit comments