mirror of
https://github.com/penpot/penpot.git
synced 2026-03-13 13:57:21 +00:00
🐛 Fix proportion lock toggle callback
Add missing dependency
This commit is contained in:
@@ -169,7 +169,7 @@
|
||||
|
||||
on-proportion-lock-change
|
||||
(mf/use-callback
|
||||
(mf/deps ids)
|
||||
(mf/deps ids proportion-lock)
|
||||
(fn [_]
|
||||
(let [new-lock (if (= proportion-lock :multiple) true (not proportion-lock))]
|
||||
(run! #(st/emit! (udw/set-shape-proportion-lock % new-lock)) ids))))
|
||||
|
||||
Reference in New Issue
Block a user