mirror of
https://github.com/penpot/penpot.git
synced 2025-01-22 14:39:45 -05:00
🐛 Fix problem with sort indexed shapes
This commit is contained in:
parent
2fda60f995
commit
aed6a045b3
1 changed files with 4 additions and 1 deletions
|
@ -540,7 +540,10 @@
|
|||
filted by selected set"
|
||||
[objects selected]
|
||||
(let [selected (if (set? selected) selected (set selected))]
|
||||
(sequence (map val) (indexed-shapes objects selected))))
|
||||
(sequence
|
||||
(comp (filter (fn [o] (contains? selected (val o))))
|
||||
(map val))
|
||||
(indexed-shapes objects selected))))
|
||||
|
||||
(defn get-index-replacement
|
||||
"Given a collection of shapes, calculate their positions
|
||||
|
|
Loading…
Add table
Reference in a new issue