Commit 95a61d4d authored by Lauri Himanen's avatar Lauri Himanen
Browse files

Fixed logic issue with aggregations not being fetched for exclusive filter values.

parent d11b5aa4
Pipeline #121279 passed with stages
in 29 minutes and 2 seconds
......@@ -1367,7 +1367,7 @@ function toAPIAgg(aggs, updatedFilters, resource) {
for (const [type, options] of Object.entries(data)) {
const exclude = options.exclude
? options.exclude(updatedFilters)
: updatedFilters.has(key) && filterDataGlobal[key].exclusive
: filterDataGlobal[key].exclusive
const name = resource === 'materials' ? materialNames[quantity.split(':')[0]] : quantity
const apiAgg = apiAggs[name] || {}
apiAgg[type] = {
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment