0
Fork 0
mirror of https://github.com/penpot/penpot.git synced 2025-01-25 16:09:17 -05:00

Merge pull request #1907 from penpot/eva-fix-layers-when-group

🐛 Fix change layer position on group or component creation
This commit is contained in:
Pablo Alba 2022-05-17 10:48:08 +02:00 committed by GitHub
commit f68a4eb84a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -88,7 +88,7 @@
changes (-> (pcb/empty-changes it page-id)
(pcb/with-objects objects)
(pcb/add-object group)
(pcb/add-object group {:index (::index (first shapes))})
(pcb/change-parent (:id group) shapes)
(pcb/remove-objects ids-to-delete))]