mirror of
https://github.com/penpot/penpot.git
synced 2025-05-09 10:55:54 +02:00
🐛 Fix double deref
This commit is contained in:
parent
d6a5913086
commit
cb65eca062
1 changed files with 1 additions and 1 deletions
|
@ -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…
Add table
Reference in a new issue