Skip to content

Commit

Permalink
fix(website): make effect values to devtools safe
Browse files Browse the repository at this point in the history
  • Loading branch information
christianalfoni committed Jan 13, 2019
1 parent 28a30fc commit 1662347
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/node_modules/overmind/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -461,7 +461,7 @@ export class Overmind<Config extends Configuration> implements Configuration {
this.eventHub.emit(EventType.EFFECT, {
...execution,
...effect,
result: promisedResult,
result: safeValue(promisedResult),
isPending: false,
error: false,
})
Expand All @@ -479,7 +479,7 @@ export class Overmind<Config extends Configuration> implements Configuration {
this.eventHub.emit(EventType.EFFECT, {
...execution,
...effect,
result,
result: safeValue(result),
isPending: false,
error: false,
})
Expand Down

0 comments on commit 1662347

Please sign in to comment.