From b452dabf2012950f4961b04f6d43ffc62d7f5c48 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micha=C3=ABl=20De=20Boey?= Date: Mon, 9 Mar 2020 13:42:58 +0100 Subject: [PATCH] Fix typecheck (#3652) --- 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;