mirror of
https://github.com/penpot/penpot.git
synced 2025-05-15 08:46:37 +02:00
Merge remote-tracking branch 'origin/staging' into develop
This commit is contained in:
commit
f5df0eacef
2 changed files with 8 additions and 4 deletions
|
@ -1083,13 +1083,13 @@
|
|||
[]
|
||||
(letfn [(sort-selected [state data]
|
||||
(let [selected (wsh/lookup-selected state)
|
||||
objects (wsh/lookup-page-objects state)
|
||||
objects (wsh/lookup-page-objects state)
|
||||
|
||||
;; Narrow the objects map so it contains only relevant data for
|
||||
;; selected and its parents
|
||||
objects (cph/selected-subtree objects selected)
|
||||
|
||||
objects (cph/selected-subtree objects selected)
|
||||
selected (->> (ctst/sort-z-index objects selected)
|
||||
(reverse)
|
||||
(into (d/ordered-set)))]
|
||||
|
||||
(assoc data :selected selected)))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue