mirror of
https://github.com/penpot/penpot.git
synced 2025-02-25 08:16:49 -05:00
🐛 Fix proportion lock toggle callback
Add missing dependency
This commit is contained in:
parent
bd734c1095
commit
c54deb0218
1 changed files with 1 additions and 1 deletions
|
@ -169,7 +169,7 @@
|
||||||
|
|
||||||
on-proportion-lock-change
|
on-proportion-lock-change
|
||||||
(mf/use-callback
|
(mf/use-callback
|
||||||
(mf/deps ids)
|
(mf/deps ids proportion-lock)
|
||||||
(fn [_]
|
(fn [_]
|
||||||
(let [new-lock (if (= proportion-lock :multiple) true (not proportion-lock))]
|
(let [new-lock (if (= proportion-lock :multiple) true (not proportion-lock))]
|
||||||
(run! #(st/emit! (udw/set-shape-proportion-lock % new-lock)) ids))))
|
(run! #(st/emit! (udw/set-shape-proportion-lock % new-lock)) ids))))
|
||||||
|
|
Loading…
Add table
Reference in a new issue