mirror of
https://github.com/penpot/penpot.git
synced 2025-07-17 16:48:16 +02:00
🐛 Fix validation error when moving a nested inside a main
This commit is contained in:
parent
4178be3acf
commit
68a1882a65
1 changed files with 1 additions and 1 deletions
|
@ -944,7 +944,7 @@
|
||||||
(let [shape (get objects id)
|
(let [shape (get objects id)
|
||||||
parent (get objects parent-id)
|
parent (get objects parent-id)
|
||||||
component-shape (ctn/get-component-shape objects shape)
|
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)
|
root-parent (ctn/get-instance-root objects parent)
|
||||||
|
|
||||||
detach? (and (ctk/in-component-copy-not-head? shape)
|
detach? (and (ctk/in-component-copy-not-head? shape)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue