From f96bd1b6b4bef6d9b2793a2685a36606a71adff4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micha=C3=ABl=20De=20Boey?= Date: Sun, 8 Mar 2020 17:39:12 +0100 Subject: [PATCH] Fix typecheck --- packages/app/src/app/overmind/namespaces/editor/actions.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/app/src/app/overmind/namespaces/editor/actions.ts b/packages/app/src/app/overmind/namespaces/editor/actions.ts index 341713225ac..c9e763a22c7 100755 --- a/packages/app/src/app/overmind/namespaces/editor/actions.ts +++ b/packages/app/src/app/overmind/namespaces/editor/actions.ts @@ -1481,8 +1481,8 @@ export const updateComment: AsyncAction<{ comment?: string; isResolved: boolean; }; -}> = async ({ state, effects }, { id, data }) => { - if (!state.editor.currentSandbox) { +}> = async ({ effects, state }, { id, data }) => { + if (!state.editor.currentSandbox || !state.editor.currentComment) { return; } const sandboxId = state.editor.currentSandbox.id;