mirror of
https://github.com/penpot/penpot.git
synced 2025-02-03 12:59:12 -05:00
🐛 Fix move content of a group generates orphan elements
This commit is contained in:
parent
ca7ebdcc8f
commit
3157ad79a5
1 changed files with 4 additions and 2 deletions
|
@ -778,8 +778,10 @@
|
|||
(recursive-find-empty-parents parents))))
|
||||
|
||||
empty-parents
|
||||
;; Any parent whose children are moved should be deleted
|
||||
(into (d/ordered-set) (find-all-empty-parents #{}))
|
||||
;; Any empty parent whose children are moved to another frame should be deleted
|
||||
(if (empty? moving-shapes)
|
||||
#{}
|
||||
(into (d/ordered-set) (find-all-empty-parents #{})))
|
||||
|
||||
changes
|
||||
(-> (pcb/empty-changes it page-id)
|
||||
|
|
Loading…
Add table
Reference in a new issue