0
Fork 0
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:
Andrey Antukh 2023-09-04 11:49:14 +02:00
parent bd734c1095
commit c54deb0218

View file

@ -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))))