From e0b6e74e5dc82e5a8c247bdf1c11c94a0a37b469 Mon Sep 17 00:00:00 2001 From: "alonso.torres" Date: Fri, 11 Sep 2020 11:25:55 +0200 Subject: [PATCH] :bug: Fixed interactions --- frontend/src/app/main/ui/workspace/shapes/interactions.cljs | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/frontend/src/app/main/ui/workspace/shapes/interactions.cljs b/frontend/src/app/main/ui/workspace/shapes/interactions.cljs index d8229c5e6e..ab6d79d4da 100644 --- a/frontend/src/app/main/ui/workspace/shapes/interactions.cljs +++ b/frontend/src/app/main/ui/workspace/shapes/interactions.cljs @@ -175,11 +175,10 @@ (mf/defc interactions [{:keys [selected] :as props}] - (let [data (mf/deref refs/workspace-data) - local (mf/deref refs/workspace-local) + (let [local (mf/deref refs/workspace-local) zoom (mf/deref refs/selected-zoom) current-transform (:transform local) - objects (:objects data) + objects (mf/deref refs/workspace-page-objects) active-shapes (filter #(first (get-click-interaction %)) (vals objects)) selected-shapes (map #(get objects %) selected) draw-interaction-to (:draw-interaction-to local)