🐛 Fix restore component when its original parent is deleted (#6517)

This commit is contained in:
Pablo Alba 2025-05-21 10:05:22 +02:00 committed by GitHub
parent b6563f620b
commit 9bad9b8e91
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -2055,7 +2055,7 @@
(pcb/with-objects objects)
(pcb/resize-parents new-objects-ids)
;; Fix the order of the children inside the parent
(pcb/reorder-children parent-id (get-in objects [parent-id :shapes])))]
(cond-> parent-id (pcb/reorder-children parent-id (get-in objects [parent-id :shapes]))))]
(assoc changes :file-id library-id)))
(defn generate-detach-component