mirror of
https://github.com/penpot/penpot.git
synced 2025-05-10 13:26:37 +02: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
|
update-new-shape
|
||||||
(fn [new-shape original-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))
|
(when (nil? (:parent-id original-shape))
|
||||||
(vswap! unames conj new-name))
|
(vswap! unames conj new-name))
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue