mirror of
https://github.com/penpot/penpot.git
synced 2025-02-23 23:35:58 -05:00
Merge pull request #2638 from penpot/superalex-fix-move-the-content-of-a-group-generates-orphan-elements
🐛 Fix move content of a group generates orphan elements
This commit is contained in:
commit
cb7354a19c
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