fixing minor issue

This commit is contained in:
2021-01-26 16:07:49 -08:00
parent 74936001ba
commit dae4e196c1

View File

@@ -47,6 +47,7 @@
::params-change ::params-change
[with-user] [with-user]
(fn [{:keys [user db ]} [_ params]] (fn [{:keys [user db ]} [_ params]]
(try
{:graphql {:token user {:graphql {:token user
:owns-state {:single [::data-page/page ::page]} :owns-state {:single [::data-page/page ::page]}
:query-obj {:venia/queries [{:query/data [:transaction_page :query-obj {:venia/queries [{:query/data [:transaction_page
@@ -59,7 +60,10 @@
:on-success (fn [result] :on-success (fn [result]
[::data-page/received ::page (:result result)])}})) [::data-page/received ::page (:result result)])}}
(catch js/Error e
;; this catches an error where you choose a parameter, change to invoices page, then change to voided invoices
(println "Error!" e)))))
(re-frame/reg-event-fx (re-frame/reg-event-fx
::bulk-change-transaction-status ::bulk-change-transaction-status