mirror of
https://github.com/penpot/penpot.git
synced 2026-09-12 23:19:28 +00:00
🐛 Fix double deref
This commit is contained in:
parent
d6a5913086
commit
cb65eca062
@ -38,7 +38,7 @@
|
|||||||
(fn [blobs]
|
(fn [blobs]
|
||||||
;; We don't want to add a ref because that redraws the component
|
;; We don't want to add a ref because that redraws the component
|
||||||
;; for everychange. Better direct access on the callback.
|
;; for everychange. Better direct access on the callback.
|
||||||
(let [vbox (deref @refs/vbox)
|
(let [vbox (deref refs/vbox)
|
||||||
x (mth/round (+ (:x vbox) (/ (:width vbox) 2)))
|
x (mth/round (+ (:x vbox) (/ (:width vbox) 2)))
|
||||||
y (mth/round (+ (:y vbox) (/ (:height vbox) 2)))
|
y (mth/round (+ (:y vbox) (/ (:height vbox) 2)))
|
||||||
params {:file-id (:id file)
|
params {:file-id (:id file)
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user