Fix linked-to filter to handle empty string as nil

This commit is contained in:
2026-05-20 21:02:23 -07:00
parent 6f7f1c7815
commit 1f9a7080e1

View File

@@ -43,7 +43,9 @@
[:vendor {:optional true :default nil} [:maybe [:entity-map {:pull [:db/id :vendor/name]}]]]
[:bank-account {:optional true :default nil} [:maybe [:entity-map {:pull [:db/id :bank-account/numeric-code]}]]]
[:account {:optional true :default nil} [:maybe [:entity-map {:pull [:db/id :account/name]}]]]
[:linked-to {:optional true} [:maybe [:enum "payment" "expected-deposit" "invoice" "none"]]]
[:linked-to {:optional true}
[:maybe [:enum {:decode/string {:enter #(if (seq %) % nil)}}
"payment" "expected-deposit" "invoice" "none"]]]
[:location {:optional true} [:maybe [:string {:decode/string strip}]]]
[:potential-duplicates {:optional true}
[:maybe [:boolean {:decode/string {:enter #(cond (= % "on") true