a lot of progress on typeaheads, etc.
This commit is contained in:
@@ -206,12 +206,12 @@
|
||||
|
||||
(re-frame/reg-event-fx
|
||||
::invoice-created
|
||||
(fn [{:keys [db]} [_ result]]
|
||||
(fn [{:keys [db]} [_ {:keys [add-invoice]}]]
|
||||
{:dispatch [::events/modal-completed ::new-invoice]
|
||||
:db (-> db
|
||||
(update-in [::invoice-page :invoices]
|
||||
(fn [is]
|
||||
(into [(:add-invoice result)]
|
||||
(into [(assoc add-invoice :class "live-added")]
|
||||
is)))
|
||||
(dissoc ::new-invoice))}))
|
||||
|
||||
|
||||
Reference in New Issue
Block a user