0
Fork 0
mirror of https://github.com/penpot/penpot.git synced 2025-03-18 10:41:29 -05:00

Merge pull request #3846 from penpot/hiru-components-bugfix2

🐛 Fix pasting a nested copy outside a component
This commit is contained in:
Pablo Alba 2023-11-23 22:15:34 +01:00 committed by GitHub
commit 1adad4dbbc
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

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 []))