diff --git a/src/uxbox/ui/workspace/header.cljs b/src/uxbox/ui/workspace/header.cljs index b43c4f339..88f399c21 100644 --- a/src/uxbox/ui/workspace/header.cljs +++ b/src/uxbox/ui/workspace/header.cljs @@ -18,13 +18,13 @@ (defn- coordenates-render [own] - (let [{:keys [x y]} (rum/react wb/mouse-canvas-a) - x (mth/precision x 1) - y (mth/precision y 1)] - (html - [:ul.options-btn - [:li.tooltip.tooltip-bottom {:alt "x"} x] - [:li.tooltip.tooltip-bottom {:alt "y"} y]]))) + (when-let [{:keys [x y]} (rum/react wb/mouse-canvas-a)] + (let [x (mth/precision x 1) + y (mth/precision y 1)] + (html + [:ul.options-btn + [:li.tooltip.tooltip-bottom {:alt "x"} x] + [:li.tooltip.tooltip-bottom {:alt "y"} y]])))) (def coordinates (mx/component