0
Fork 0
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:
alonso.torres 2024-04-08 16:32:34 +02:00
parent 2fda60f995
commit aed6a045b3

View file

@ -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