0
Fork 0
mirror of https://github.com/penpot/penpot.git synced 2025-04-13 07:21:40 -05:00

🐛 Fix change layer position on group or component creation

This commit is contained in:
Eva 2022-05-17 10:29:19 +02:00
parent 799bb87398
commit a240fbdf5b

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