0
Fork 0
mirror of https://github.com/penpot/penpot.git synced 2025-02-21 14:26:27 -05:00

🐛 Fix double deref

This commit is contained in:
Andrey Antukh 2022-02-28 17:17:08 +01:00
parent d6a5913086
commit cb65eca062

View file

@ -38,7 +38,7 @@
(fn [blobs]
;; We don't want to add a ref because that redraws the component
;; 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)))
y (mth/round (+ (:y vbox) (/ (:height vbox) 2)))
params {:file-id (:id file)