mirror of
https://github.com/penpot/penpot.git
synced 2025-02-25 16:25:56 -05:00
🐛 Fix problem when reorder layers removes show in viewer
This commit is contained in:
parent
532caea169
commit
64c0273554
1 changed files with 2 additions and 1 deletions
|
@ -664,7 +664,8 @@
|
|||
(pcb/update-shapes ordered-indexes ctl/remove-layout-item-data))
|
||||
|
||||
;; Remove the hide in viewer flag
|
||||
(pcb/update-shapes ordered-indexes #(cond-> % (cph/frame-shape? %) (assoc :hide-in-viewer true)))
|
||||
(cond-> (and (not= uuid/zero parent-id) (cph/frame-shape? objects parent-id))
|
||||
(pcb/update-shapes ordered-indexes #(cond-> % (cph/frame-shape? %) (assoc :hide-in-viewer true))))
|
||||
|
||||
;; Move the shapes
|
||||
(pcb/change-parent parent-id
|
||||
|
|
Loading…
Add table
Reference in a new issue