diff --git a/frontend/src/uxbox/main/data/shapes.cljs b/frontend/src/uxbox/main/data/shapes.cljs index 6e8cf791d..9bf90c5cf 100644 --- a/frontend/src/uxbox/main/data/shapes.cljs +++ b/frontend/src/uxbox/main/data/shapes.cljs @@ -585,10 +585,8 @@ ptk/UpdateEvent (update [_ state] (let [pid (get-in state [:workspace :page]) - used-names (map #(get-in state [:shapes % :name]) - (get-in state [:pages pid :shapes])) selected (get-in state [:workspace :selected])] - (impl/group-shapes state selected used-names pid))))) + (impl/group-shapes state selected pid))))) (defn degroup-selected [] diff --git a/frontend/src/uxbox/main/data/shapes_impl.cljs b/frontend/src/uxbox/main/data/shapes_impl.cljs index 1c7d42678..b9551bcd5 100644 --- a/frontend/src/uxbox/main/data/shapes_impl.cljs +++ b/frontend/src/uxbox/main/data/shapes_impl.cljs @@ -310,7 +310,7 @@ (reduce match #{} (sequence xf shapes)))) (defn group-shapes - [state shapes used-names page] + [state shapes page] (letfn [(replace-first-item [pred coll replacement] (into [] (concat