diff --git a/frontend/src/app/main/data/exports.cljs b/frontend/src/app/main/data/exports.cljs index d9d787dc4..44946090f 100644 --- a/frontend/src/app/main/data/exports.cljs +++ b/frontend/src/app/main/data/exports.cljs @@ -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)] diff --git a/frontend/src/app/main/ui/workspace/header.cljs b/frontend/src/app/main/ui/workspace/header.cljs index b3c60a0a5..28a4831cd 100644 --- a/frontend/src/app/main/ui/workspace/header.cljs +++ b/frontend/src/app/main/ui/workspace/header.cljs @@ -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 diff --git a/frontend/src/app/main/ui/workspace/sidebar/options/menus/exports.cljs b/frontend/src/app/main/ui/workspace/sidebar/options/menus/exports.cljs index c28bcccb1..27bb3fd6a 100644 --- a/frontend/src/app/main/ui/workspace/sidebar/options/menus/exports.cljs +++ b/frontend/src/app/main/ui/workspace/sidebar/options/menus/exports.cljs @@ -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