mirror of
https://github.com/penpot/penpot.git
synced 2025-12-11 22:14:05 +01:00
🐛 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
Some checks are pending
Commit Message Check / Check Commit Message (push) Waiting to run
This commit is contained in:
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user