diff --git a/src/uxbox/ui/workspace/canvas.cljs b/src/uxbox/ui/workspace/canvas.cljs index b268aacbc..dae243c2b 100644 --- a/src/uxbox/ui/workspace/canvas.cljs +++ b/src/uxbox/ui/workspace/canvas.cljs @@ -21,14 +21,6 @@ [uxbox.ui.workspace.options :refer (element-opts)]) (:import goog.events.EventType)) -;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; -;; Lenses -;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; - -(def ^:static ^:private shapes-by-id - (as-> (l/key :shapes-by-id) $ - (l/focus-atom $ st/state))) - ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; ;; Background ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; @@ -148,7 +140,7 @@ (defn- canvas-render [own {:keys [width height id] :as page}] (let [workspace (rum/react wb/workspace-l) - shapes-by-id (rum/react shapes-by-id) + shapes-by-id (rum/react wb/shapes-by-id) workspace-selected (:selected workspace) xf (comp (map #(get shapes-by-id %))