Skip to content
Snippets Groups Projects
Commit 6d32a378 authored by Simon Belak's avatar Simon Belak
Browse files

Correctly handle empty filters

parent 66e0d2be
Branches
Tags
No related merge requests found
......@@ -262,7 +262,9 @@
(defn applied-filters
"Extract fields and their values from MBQL filter clauses."
[filter-clause]
(for [{field-reference :field value :value} (humanize-filter-value filter-clause)]
(for [{field-reference :field value :value} (some->> filter-clause
not-empty
humanize-filter-value)]
(let [field (field-reference->field field-reference)]
{:field (if (-> field-reference
first
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment