mirror of
https://github.com/penpot/penpot.git
synced 2025-01-09 16:30:37 -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
|
||||
[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
|
||||
|
|
Loading…
Reference in a new issue