From 1662347a8a27151e3c146b6e60ed4b7b11678b46 Mon Sep 17 00:00:00 2001 From: christianalfoni Date: Sun, 13 Jan 2019 22:35:04 +0100 Subject: [PATCH] fix(website): make effect values to devtools safe --- packages/node_modules/overmind/src/index.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/node_modules/overmind/src/index.ts b/packages/node_modules/overmind/src/index.ts index 6dd58605..1fa3c72a 100644 --- a/packages/node_modules/overmind/src/index.ts +++ b/packages/node_modules/overmind/src/index.ts @@ -461,7 +461,7 @@ export class Overmind implements Configuration { this.eventHub.emit(EventType.EFFECT, { ...execution, ...effect, - result: promisedResult, + result: safeValue(promisedResult), isPending: false, error: false, }) @@ -479,7 +479,7 @@ export class Overmind implements Configuration { this.eventHub.emit(EventType.EFFECT, { ...execution, ...effect, - result, + result: safeValue(result), isPending: false, error: false, })