diff --git a/common/src/app/common/logic/libraries.cljc b/common/src/app/common/logic/libraries.cljc index ee6ba58fff..fd2922f384 100644 --- a/common/src/app/common/logic/libraries.cljc +++ b/common/src/app/common/logic/libraries.cljc @@ -2055,7 +2055,8 @@ (pcb/with-objects objects) (pcb/resize-parents new-objects-ids) ;; 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))) (defn generate-detach-component