0
Fork 0
mirror of https://github.com/penpot/penpot.git synced 2025-03-13 16:21:57 -05:00

🐛 Fix reorder layers with keys

This commit is contained in:
alonso.torres 2023-01-19 13:25:59 +01:00
parent fe77ef4438
commit 0632111e96

View file

@ -643,7 +643,7 @@
(let [objects (wsh/lookup-page-objects state)
selected (wsh/lookup-selected state {:omit-blocked? true})
selected-shapes (->> selected (map (d/getf objects)))]
(if (every? (partial ctl/layout-immediate-child-id? objects) selected-shapes)
(if (every? (partial ctl/layout-immediate-child? objects) selected-shapes)
(rx/of (reorder-selected-layout-child direction))
(rx/of (nudge-selected-shapes direction shift?)))))))