From 68721520e6dc2b2f04a4818ecd5dd44cf9263fc1 Mon Sep 17 00:00:00 2001 From: Bryce Covert Date: Mon, 10 Oct 2022 20:48:37 -0700 Subject: [PATCH] fix import batch --- src/clj/auto_ap/graphql/ledger.clj | 1 + src/cljs/auto_ap/views/pages/admin/import_batches.cljs | 8 ++------ 2 files changed, 3 insertions(+), 6 deletions(-) diff --git a/src/clj/auto_ap/graphql/ledger.clj b/src/clj/auto_ap/graphql/ledger.clj index 00f55322..6ce8a43b 100644 --- a/src/clj/auto_ap/graphql/ledger.clj +++ b/src/clj/auto_ap/graphql/ledger.clj @@ -199,6 +199,7 @@ (try (f entry) (catch Exception e + (println e) (assoc entry :error (.getMessage e) :status (or (:status (ex-data e)) :error)))))) diff --git a/src/cljs/auto_ap/views/pages/admin/import_batches.cljs b/src/cljs/auto_ap/views/pages/admin/import_batches.cljs index 38a4b979..143dc846 100644 --- a/src/cljs/auto_ap/views/pages/admin/import_batches.cljs +++ b/src/cljs/auto_ap/views/pages/admin/import_batches.cljs @@ -45,19 +45,15 @@ ::unmounted (fn [{:keys [db]}] {:dispatch [::data-page/dispose ::page] - ::track/dispose {:id ::params} - :db (dissoc db ::msg)})) + ::track/dispose {:id ::params}})) ;; VIEWS (def import-batch-content (with-meta (fn [] - (let [user @(re-frame/subscribe [::subs/user]) - message @(re-frame/subscribe [::msg])] + (let [user @(re-frame/subscribe [::subs/user])] [:div [:h1.title "Import Batches"] - (when message - [:div.notification.is-info.is-light message]) (when (= "admin" (:user/role user)) [:div [:div.is-pulled-right