Skip to content

Commit

Permalink
hide comments (#4606)
Browse files Browse the repository at this point in the history
  • Loading branch information
bkrmendy authored Dec 6, 2023
1 parent e99b2e5 commit 097d977
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion editor/src/components/canvas/controls/comment-indicator.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,13 @@ export const CommentIndicators = React.memo(() => {
'CommentIndicator projectId',
)

if (projectId == null) {
const mode = useEditorState(
Substores.restOfEditor,
(store) => store.editor.mode.type,
'CommentIndicators mode',
)

if (projectId == null || mode === 'live') {
return null
}

Expand Down

0 comments on commit 097d977

Please sign in to comment.