progress on making saving work better for accounts.
This commit is contained in:
@@ -74,6 +74,7 @@
|
||||
(re-frame/reg-event-db
|
||||
::change
|
||||
(fn [db [_ form & path-pairs]]
|
||||
|
||||
(reduce
|
||||
(fn [db [path value]]
|
||||
(assoc-in db (into [::forms form :data] path) value))
|
||||
@@ -82,6 +83,7 @@
|
||||
|
||||
(defn change-handler [form customize-fn]
|
||||
(fn [db [_ & path-pairs]]
|
||||
|
||||
(reduce
|
||||
(fn [db [path value]]
|
||||
(let [updated (assoc-in db (into [::forms form :data] path) value)]
|
||||
|
||||
Reference in New Issue
Block a user