mirror of
https://github.com/penpot/penpot.git
synced 2025-07-27 12:07:25 +02:00
🐛 Fix pasting a nested copy outside a component
This commit is contained in:
parent
9773aae5b6
commit
1804a9823f
1 changed files with 4 additions and 0 deletions
|
@ -468,6 +468,10 @@
|
||||||
(cond-> into-component?
|
(cond-> into-component?
|
||||||
(dissoc :component-root))
|
(dissoc :component-root))
|
||||||
|
|
||||||
|
(cond-> (and (ctk/instance-head? obj)
|
||||||
|
(not into-component?))
|
||||||
|
(assoc :component-root true))
|
||||||
|
|
||||||
(cond-> (or frame? group? bool?)
|
(cond-> (or frame? group? bool?)
|
||||||
(assoc :shapes []))
|
(assoc :shapes []))
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue