mirror of
https://github.com/penpot/penpot.git
synced 2025-04-01 17:41:50 -05:00
Simplify
This commit is contained in:
parent
c9df90577f
commit
0a86e3a651
1 changed files with 2 additions and 3 deletions
|
@ -61,9 +61,8 @@
|
|||
state (mf/use-state initial-fields)
|
||||
|
||||
on-update-state-field (fn [idx e]
|
||||
(->> (dom/get-target-val e)
|
||||
(assoc-in @state [idx :value])
|
||||
(reset! state)))
|
||||
(let [value (dom/get-target-val e)]
|
||||
(swap! state assoc-in [idx :value] value)))
|
||||
|
||||
on-submit (fn [e]
|
||||
(dom/prevent-default e)
|
||||
|
|
Loading…
Add table
Reference in a new issue