0
Fork 0
mirror of https://github.com/penpot/penpot.git synced 2025-03-12 07:41:43 -05:00

🐛 Fix when duplicating a main component all internal shapes are marked as :main-instance

This commit is contained in:
Pablo Alba 2023-09-21 12:00:57 +02:00 committed by Andrés Moya
parent de8758c4ca
commit 4ac2a64a2a

View file

@ -269,7 +269,8 @@
update-new-shape
(fn [new-shape original-shape]
(let [new-name (:name new-shape)]
(let [new-name (:name new-shape)
main-instance? (and main-instance? (ctk/instance-root? new-shape))] ; Only the instance root can be a main instance
(when (nil? (:parent-id original-shape))
(vswap! unames conj new-name))