0
Fork 0
mirror of https://github.com/penpot/penpot.git synced 2025-04-12 15:01:28 -05:00

🐛 Fix problem with move-objects

This commit is contained in:
alonso.torres 2021-05-28 11:05:18 +02:00
parent 46448bc5c7
commit 3d7a3f27d5

View file

@ -276,7 +276,7 @@
(if (and valid? (seq shapes))
(as-> objects $
;; Add the new shapes to the parent object.
(update $ parent-id #(add-to-parent % index shapes))
(d/update-when $ parent-id #(add-to-parent % index shapes))
;; Update each individual shape link to the new parent
(reduce update-parent-id $ shapes)