mirror of
https://github.com/penpot/penpot.git
synced 2025-01-10 08:50:57 -05:00
Fix unexpected exception on workspace load...
... when the user access it from dashboard.
This commit is contained in:
parent
bb1222116d
commit
36dd831a69
1 changed files with 7 additions and 7 deletions
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue