diff --git a/common/src/app/common/data.cljc b/common/src/app/common/data.cljc index f7316a274..2a3320f6b 100644 --- a/common/src/app/common/data.cljc +++ b/common/src/app/common/data.cljc @@ -580,8 +580,10 @@ (defn nilv "Returns a default value if the given value is nil" - [v default] - (if (some? v) v default)) + ([default] + (map #(nilv % default))) + ([v default] + (if (some? v) v default))) (defn num? "Checks if a value `val` is a number but not an Infinite or NaN"