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:
parent
fe77ef4438
commit
0632111e96
1 changed files with 1 additions and 1 deletions
|
@ -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?)))))))
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue