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:
parent
6b164e10f2
commit
80ef69c710
3 changed files with 3 additions and 3 deletions
|
@ -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)]
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue