Commit 9e38e1f5 authored by Lauri Himanen's avatar Lauri Himanen
Browse files

Restyled the composition search.

parent ada4e9f6
......@@ -165,16 +165,12 @@ class FilterPanel {
this.fields.forEach( field => {
const values = field.getValues();
console.log("===============")
console.log(values)
if (Array.isArray(values) && values.length > 0){
values.forEach( value => filterMap.set(value.fieldId, value.value))
} else if (values && values.value && values.value.length > 0) {
filterMap.set(values.fieldId, values.value);
}
});
console.log("FILTERMAP")
console.log(filterMap)
return filterMap;
}
......
Markdown is supported
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