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:
parent
de8758c4ca
commit
4ac2a64a2a
1 changed files with 2 additions and 1 deletions
|
@ -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))
|
||||
|
|
Loading…
Add table
Reference in a new issue