mirror of
https://github.com/penpot/penpot.git
synced 2026-08-27 23:28:38 +00:00
🐛 Fix non-root copy only allowed inside a copy migration error
This commit is contained in:
parent
7c0a63c7da
commit
2924791cb0
@ -746,10 +746,7 @@
|
|||||||
(fix-shape [shape]
|
(fix-shape [shape]
|
||||||
(cond-> shape
|
(cond-> shape
|
||||||
(@detached-ids (:shape-ref shape))
|
(@detached-ids (:shape-ref shape))
|
||||||
(dissoc shape
|
(ctk/detach-shape)))]
|
||||||
:component-id
|
|
||||||
:component-file
|
|
||||||
:component-root)))]
|
|
||||||
(-> file-data
|
(-> file-data
|
||||||
(update :pages-index update-vals fix-container)
|
(update :pages-index update-vals fix-container)
|
||||||
(d/update-when :components update-vals fix-container))))
|
(d/update-when :components update-vals fix-container))))
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user