From 7603263ba473eb2e981423790194d916c0d1fcc6 Mon Sep 17 00:00:00 2001 From: Bryce Covert Date: Sat, 17 Oct 2020 10:11:34 -0700 Subject: [PATCH] string trimming for location, since it sometimes has spaces. --- src/cljs/auto_ap/views/pages/ledger/external_import.cljs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/cljs/auto_ap/views/pages/ledger/external_import.cljs b/src/cljs/auto_ap/views/pages/ledger/external_import.cljs index 7271bf5c..aabf4ca5 100644 --- a/src/cljs/auto_ap/views/pages/ledger/external_import.cljs +++ b/src/cljs/auto_ap/views/pages/ledger/external_import.cljs @@ -49,7 +49,7 @@ (map #(if (js/isNaN %) 0 %)))) :line-items (map (fn [{:keys [debit credit account-identifier location]}] {:account-identifier account-identifier - :location location + :location (some-> location str/trim) :debit debit :credit credit}) lines)}))))