🐛 Fix error when pasting a main component in other file

This commit is contained in:
Andrés Moya 2024-04-08 13:26:39 +02:00
parent b836e8c5ab
commit 10fbae2f0a
3 changed files with 4 additions and 2 deletions

View file

@ -512,9 +512,11 @@
(ctk/remove-swap-slot))
(dissoc :shapes
:main-instance
:use-for-thumbnail)
(cond-> (not is-component-root?)
(dissoc :main-instance))
(cond-> into-component?
(dissoc :component-root))