diff --git a/src/uxbox/state/shapes.cljs b/src/uxbox/state/shapes.cljs index 6e6a944b2..fc8401371 100644 --- a/src/uxbox/state/shapes.cljs +++ b/src/uxbox/state/shapes.cljs @@ -10,7 +10,7 @@ (let [sid (random-uuid) shape (merge shape {:id sid :page page})] (as-> state $ - (update-in $ [:pages-by-id page :shapes] conj sid) + (update-in $ [:pages-by-id page :shapes] #(into [] (cons sid %))) (assoc-in $ [:shapes-by-id sid] shape)))) (defn duplicate-shapes'