Skip to content

Commit b452dab

Browse files
Fix typecheck (#3652)
1 parent 59a5d04 commit b452dab

File tree

1 file changed

+2
-2
lines changed
  • packages/app/src/app/overmind/namespaces/editor

1 file changed

+2
-2
lines changed

packages/app/src/app/overmind/namespaces/editor/actions.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1481,8 +1481,8 @@ export const updateComment: AsyncAction<{
14811481
comment?: string;
14821482
isResolved: boolean;
14831483
};
1484-
}> = async ({ state, effects }, { id, data }) => {
1485-
if (!state.editor.currentSandbox) {
1484+
}> = async ({ effects, state }, { id, data }) => {
1485+
if (!state.editor.currentSandbox || !state.editor.currentComment) {
14861486
return;
14871487
}
14881488
const sandboxId = state.editor.currentSandbox.id;

0 commit comments

Comments
 (0)