Skip to content

Commit

Permalink
close thread on resolve (#4674)
Browse files Browse the repository at this point in the history
  • Loading branch information
bkrmendy authored Jan 2, 2024
1 parent d5661e5 commit 0fe6529
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion editor/src/components/canvas/controls/comment-popup.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -273,7 +273,8 @@ const CommentThread = React.memo(({ comment }: CommentThreadProps) => {
return
}
resolveThread(thread)
}, [thread, resolveThread])
dispatch([switchEditorMode(EditorModes.commentMode(null, 'not-dragging'))])
}, [thread, resolveThread, dispatch])

const onClickClose = React.useCallback(() => {
dispatch([switchEditorMode(EditorModes.commentMode(null, 'not-dragging'))])
Expand Down

0 comments on commit 0fe6529

Please sign in to comment.