mirror of
https://github.com/penpot/penpot.git
synced 2026-04-28 04:38:14 +00:00
🐛 Fix problem when reorder layers removes show in viewer
This commit is contained in:
parent
532caea169
commit
64c0273554
@ -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…
x
Reference in New Issue
Block a user