0
Fork 0
mirror of https://github.com/penpot/penpot.git synced 2025-04-14 07:51:35 -05:00

🐛 Fix validation error when moving a nested inside a main

This commit is contained in:
Andrés Moya 2024-01-15 13:58:14 +01:00 committed by Andrés Moya
parent 4178be3acf
commit 68a1882a65

View file

@ -944,7 +944,7 @@
(let [shape (get objects id)
parent (get objects parent-id)
component-shape (ctn/get-component-shape objects shape)
component-shape-parent (ctn/get-component-shape objects parent)
component-shape-parent (ctn/get-component-shape objects parent {:allow-main? true})
root-parent (ctn/get-instance-root objects parent)
detach? (and (ctk/in-component-copy-not-head? shape)