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:
parent
d6a5913086
commit
cb65eca062
1 changed files with 1 additions and 1 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Reference in a new issue