0
Fork 0
mirror of https://github.com/penpot/penpot.git synced 2025-01-10 00:40:30 -05:00

Fix unexpected exception on workspace load...

... when the user access it from dashboard.
This commit is contained in:
Andrey Antukh 2016-02-18 21:18:29 +02:00
parent bb1222116d
commit 36dd831a69

View file

@ -18,13 +18,13 @@
(defn- coordenates-render (defn- coordenates-render
[own] [own]
(let [{:keys [x y]} (rum/react wb/mouse-canvas-a) (when-let [{:keys [x y]} (rum/react wb/mouse-canvas-a)]
x (mth/precision x 1) (let [x (mth/precision x 1)
y (mth/precision y 1)] y (mth/precision y 1)]
(html (html
[:ul.options-btn [:ul.options-btn
[:li.tooltip.tooltip-bottom {:alt "x"} x] [:li.tooltip.tooltip-bottom {:alt "x"} x]
[:li.tooltip.tooltip-bottom {:alt "y"} y]]))) [:li.tooltip.tooltip-bottom {:alt "y"} y]]))))
(def coordinates (def coordinates
(mx/component (mx/component