mirror of
https://github.com/penpot/penpot.git
synced 2026-09-07 20:49:37 +00:00
🐛 Fix problem with move-objects
This commit is contained in:
parent
46448bc5c7
commit
3d7a3f27d5
@ -276,7 +276,7 @@
|
|||||||
(if (and valid? (seq shapes))
|
(if (and valid? (seq shapes))
|
||||||
(as-> objects $
|
(as-> objects $
|
||||||
;; Add the new shapes to the parent object.
|
;; 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
|
;; Update each individual shape link to the new parent
|
||||||
(reduce update-parent-id $ shapes)
|
(reduce update-parent-id $ shapes)
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user