mirror of
https://github.com/penpot/penpot.git
synced 2025-05-21 22:46:11 +02: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)
|
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)]
|
||||||
|
|
|
@ -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
|
||||||
|
|
|
@ -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
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue