diff --git a/frontend/src/app/main/data/workspace.cljs b/frontend/src/app/main/data/workspace.cljs index a5c387a04..eda428e30 100644 --- a/frontend/src/app/main/data/workspace.cljs +++ b/frontend/src/app/main/data/workspace.cljs @@ -556,13 +556,9 @@ ptk/WatchEvent (watch [_ state _] (let [selected (wsh/lookup-selected state) - hover-guides (get-in state [:workspace-guides :hover]) - options-mode (get-in state [:workspace-global :options-mode])] + hover-guides (get-in state [:workspace-guides :hover])] (cond - (and (= options-mode :prototype) (d/not-empty? selected)) - (rx/of (dwi/remove-interactions selected)) - - (and (= options-mode :design) (d/not-empty? selected)) + (d/not-empty? selected) (rx/of (dwc/delete-shapes selected) (dws/deselect-all)) diff --git a/frontend/src/app/main/data/workspace/interactions.cljs b/frontend/src/app/main/data/workspace/interactions.cljs index 654507ef7..d44a55a77 100644 --- a/frontend/src/app/main/data/workspace/interactions.cljs +++ b/frontend/src/app/main/data/workspace/interactions.cljs @@ -139,15 +139,6 @@ (update shape :interactions csi/remove-interaction index))))))) -(defn remove-interactions - [ids] - (ptk/reify ::remove-interactions - ptk/WatchEvent - (watch [_ _ _] - (rx/of (dch/update-shapes ids - (fn [shape] - (assoc shape :interactions []))))))) - (defn update-interaction [shape index update-fn] (ptk/reify ::update-interaction diff --git a/version.txt b/version.txt index 3ff0649bf..e1ad24de7 100644 --- a/version.txt +++ b/version.txt @@ -1 +1 @@ -1.13.0-beta +1.14.0-beta