0
Fork 0
mirror of https://github.com/penpot/penpot.git synced 2025-01-23 23:18:48 -05:00

🐛 Fix non-root copy only allowed inside a copy migration error

This commit is contained in:
Alejandro Alonso 2024-01-30 13:38:31 +01:00 committed by Andrey Antukh
parent 7c0a63c7da
commit 2924791cb0

View file

@ -746,10 +746,7 @@
(fix-shape [shape]
(cond-> shape
(@detached-ids (:shape-ref shape))
(dissoc shape
:component-id
:component-file
:component-root)))]
(ctk/detach-shape)))]
(-> file-data
(update :pages-index update-vals fix-container)
(d/update-when :components update-vals fix-container))))