0
Fork 0
mirror of https://github.com/penpot/penpot.git synced 2025-03-13 16:21:57 -05:00

🐛 Do not show 'Add annotation' menu entry for components with annotation

This commit is contained in:
Pablo Alba 2023-10-31 11:56:01 +01:00
parent 07bc5d911b
commit 08c69e751d

View file

@ -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)