0
Fork 0
mirror of https://github.com/penpot/penpot.git synced 2025-02-12 18:18:24 -05:00

🐛 Fix pasting a nested copy outside a component

This commit is contained in:
Andrés Moya 2023-11-23 16:37:14 +01:00
parent 9773aae5b6
commit 1804a9823f

View file

@ -468,6 +468,10 @@
(cond-> into-component?
(dissoc :component-root))
(cond-> (and (ctk/instance-head? obj)
(not into-component?))
(assoc :component-root true))
(cond-> (or frame? group? bool?)
(assoc :shapes []))