🐛 Fixes problem when moving parent to children group

This commit is contained in:
alonso.torres 2021-02-03 15:25:33 +01:00 committed by Andrey Antukh
parent d66452423f
commit b056cc35e4
3 changed files with 26 additions and 0 deletions

View file

@ -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)