From d7ccb0074460f8de42c5a49051ecc9e8867fb952 Mon Sep 17 00:00:00 2001 From: Bryce Covert Date: Thu, 17 Mar 2022 09:40:45 -0700 Subject: [PATCH] pnl fix. --- src/clj/auto_ap/graphql/ledger.clj | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/clj/auto_ap/graphql/ledger.clj b/src/clj/auto_ap/graphql/ledger.clj index 26d84a08..7953d416 100644 --- a/src/clj/auto_ap/graphql/ledger.clj +++ b/src/clj/auto_ap/graphql/ledger.clj @@ -184,7 +184,7 @@ (defn get-profit-and-loss [context args _] (let [client-id (:client_id args) client-ids (or (some-> client-id vector) - (:client_ids args)) + (filter identity (:client_ids args))) _ (when (not (seq client-ids)) (throw (ex-info "Please select a client." {:validation-error "Please select a client."}))) _ (doseq [client-id client-ids]