From 6a386756029f6a53766d72d4552f508543e7492b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jes=C3=BAs=20Espino?= Date: Thu, 22 Dec 2016 14:59:31 +0100 Subject: [PATCH] Maintain correct order on group duplication --- frontend/src/uxbox/main/data/shapes_impl.cljs | 1 + 1 file changed, 1 insertion(+) diff --git a/frontend/src/uxbox/main/data/shapes_impl.cljs b/frontend/src/uxbox/main/data/shapes_impl.cljs index 4ed935d1f..f2d31894c 100644 --- a/frontend/src/uxbox/main/data/shapes_impl.cljs +++ b/frontend/src/uxbox/main/data/shapes_impl.cljs @@ -47,6 +47,7 @@ (update-in $ [:shapes group :items] #(into [] (cons id %))) (assoc-in $ [:shapes id] shape)))] (->> (map #(get-in state [:shapes %]) items) + (reverse) (reduce #(duplicate-shape %1 %2 used-names page id) state))) (let [id (uuid/random) shape (-> (dissoc shape :group)