From 08c69e751da68c6daf9aa06d5beab7ab7e8d63b2 Mon Sep 17 00:00:00 2001 From: Pablo Alba Date: Tue, 31 Oct 2023 11:56:01 +0100 Subject: [PATCH] :bug: Do not show 'Add annotation' menu entry for components with annotation --- frontend/src/app/main/ui/workspace/sidebar/assets/common.cljs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/frontend/src/app/main/ui/workspace/sidebar/assets/common.cljs b/frontend/src/app/main/ui/workspace/sidebar/assets/common.cljs index 392d5f01d..a15e6881d 100644 --- a/frontend/src/app/main/ui/workspace/sidebar/assets/common.cljs +++ b/frontend/src/app/main/ui/workspace/sidebar/assets/common.cljs @@ -334,7 +334,7 @@ local-component? (= library-id current-file-id) component (find-component shape) - lacks-annotation? (nil? (:annotation shape)) + lacks-annotation? (nil? (:annotation component)) is-dangling? (nil? component) can-update-main? (or (not components-v2)