From 9d62c5321793761a896f1f848a91c4986b013236 Mon Sep 17 00:00:00 2001 From: Balint Gabor <127662+gbalint@users.noreply.github.com> Date: Wed, 3 Jan 2024 15:17:01 +0100 Subject: [PATCH] Fix more menu on first comment --- editor/src/components/canvas/controls/comment-popup.tsx | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/editor/src/components/canvas/controls/comment-popup.tsx b/editor/src/components/canvas/controls/comment-popup.tsx index 1d9b6f249753..337bdc3317d5 100644 --- a/editor/src/components/canvas/controls/comment-popup.tsx +++ b/editor/src/components/canvas/controls/comment-popup.tsx @@ -566,6 +566,11 @@ const HeaderComment = React.memo( ({ comment, enabled }: { comment: CommentData; enabled: boolean }) => { const collabs = useStorage((storage) => storage.collaborators) const user = getCollaboratorById(collabs, comment.userId) + + if (!enabled) { + return null + } + return (