mirror of
https://github.com/penpot/penpot.git
synced 2025-06-01 14:01:37 +02:00
🐛 Fixes problem when moving parent to children group
This commit is contained in:
parent
d66452423f
commit
b056cc35e4
3 changed files with 26 additions and 0 deletions
|
@ -822,6 +822,9 @@
|
|||
;; Ignore any shape whose parent is also intented to be moved
|
||||
ids (cp/clean-loops objects ids)
|
||||
|
||||
;; If we try to move a parent into a child we remove it
|
||||
ids (filter #(not (cp/is-parent? objects parent-id %)) ids)
|
||||
|
||||
parents (loop [res #{parent-id}
|
||||
ids (seq ids)]
|
||||
(if (nil? ids)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue