0
Fork 0
mirror of https://github.com/penpot/penpot.git synced 2025-01-25 07:58:49 -05:00

🐛 Fix sorting on multiple export

This commit is contained in:
Alejandro Alonso 2022-03-23 14:07:15 +01:00 committed by Andrey Antukh
parent 6b164e10f2
commit 80ef69c710
3 changed files with 3 additions and 3 deletions

View file

@ -61,7 +61,7 @@
shapes (if (seq selected)
(wsh/lookup-shapes state selected)
(wsh/filter-shapes state #(pos? (count (:exports %)))))
(reverse (wsh/filter-shapes state #(pos? (count (:exports %))))))
exports (for [shape shapes
export (:exports shape)]

View file

@ -186,7 +186,7 @@
(mf/use-callback
(mf/deps file frames)
(fn [_]
(st/emit! (de/show-workspace-export-frames-dialog frames))))
(st/emit! (de/show-workspace-export-frames-dialog (reverse frames)))))
on-item-hover
(mf/use-callback

View file

@ -49,7 +49,7 @@
(fn [event]
(dom/prevent-default event)
(if (= :multiple type)
(st/emit! (de/show-workspace-export-dialog {:selected ids}))
(st/emit! (de/show-workspace-export-dialog {:selected (reverse ids)}))
;; In other all cases we only allowed to have a single
;; shape-id because multiple shape-ids are handled