🐛 Fix restore component when its original parent with layout is deleted
Some checks are pending
Commit Message Check / Check Commit Message (push) Waiting to run

This commit is contained in:
Pablo Alba
2025-05-22 10:22:17 +02:00
committed by Pablo Alba
parent 7373056037
commit b561ad033c

View File

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