[develop | DONE | CHANGED]: refineResults.class.ts: Missing change from pre-previous commit for static filters.

This commit is contained in:
Konstantina Galouni 2023-12-14 17:35:53 +02:00
parent d15ce5522e
commit 0768248bde
1 changed files with 5 additions and 1 deletions

View File

@ -6,7 +6,7 @@ import { SearchFields} from '../../utils/properties/searchFields';
export class RefineResultsUtils {
public static parse (data, fields:string[], entityType:string, usedBy: string="search"):Filter[] {
public static parse (data, fields:string[], entityType:string, usedBy: string="search", staticFilter: boolean = false):Filter[] {
// var data = this.json.refineReuslts;
var searchFields:SearchFields = new SearchFields();
@ -39,6 +39,10 @@ export class RefineResultsUtils {
}
if(staticFilter) {
filter.countAllValues = filter.values.length;
}
// filter.values.sort(function(a, b){return b.number - a.number})
filters.push(filter);
}