mirror of
https://github.com/penpot/penpot.git
synced 2025-05-27 22:36:11 +02:00
🐛 Fix non-root copy only allowed inside a copy migration error
This commit is contained in:
parent
7c0a63c7da
commit
2924791cb0
1 changed files with 1 additions and 4 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue