🐛 Fix move content of a group generates orphan elements

This commit is contained in:
Alejandro Alonso 2022-12-07 08:37:16 +01:00
parent ca7ebdcc8f
commit 3157ad79a5

View file

@ -778,8 +778,10 @@
(recursive-find-empty-parents parents)))) (recursive-find-empty-parents parents))))
empty-parents empty-parents
;; Any parent whose children are moved should be deleted ;; Any empty parent whose children are moved to another frame should be deleted
(into (d/ordered-set) (find-all-empty-parents #{})) (if (empty? moving-shapes)
#{}
(into (d/ordered-set) (find-all-empty-parents #{})))
changes changes
(-> (pcb/empty-changes it page-id) (-> (pcb/empty-changes it page-id)