🐛 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) shapes (if (seq selected)
(wsh/lookup-shapes state 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 exports (for [shape shapes
export (:exports shape)] export (:exports shape)]

View file

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

View file

@ -49,7 +49,7 @@
(fn [event] (fn [event]
(dom/prevent-default event) (dom/prevent-default event)
(if (= :multiple type) (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 ;; In other all cases we only allowed to have a single
;; shape-id because multiple shape-ids are handled ;; shape-id because multiple shape-ids are handled