[develop-filters | DONE | CHANGED]: refineResults.class.ts: Removed check includeValue (for unidentified and Undetermined values) from "parse()" method | searchFilter.component.ts: In "ngOnChanges()" method updated check for filtering out filter values - check for unidentified, Undetermined, unknown (lowercase), not available (lowercase)
This commit is contained in:
parent
01eabb74f3
commit
d587aaefe2
|
@ -81,7 +81,9 @@ export class SearchFilterComponent implements OnInit, OnChanges {
|
|||
|
||||
ngOnChanges(changes: SimpleChanges) {
|
||||
if (changes.filter) {
|
||||
this.filter.values = this.filter.values.filter(value => !value.name.toLowerCase().includes('unknown') && !value.name.toLowerCase().includes('not available'));
|
||||
// this.filter.values = this.filter.values.filter(value => !value.name.toLowerCase().includes('unknown') && !value.name.toLowerCase().includes('not available'));
|
||||
this.filter.values = this.filter.values.filter(value => value && value.name != "unidentified" && value.name != "Undetermined" && !value.name.toLowerCase().includes('unknown') && !value.name.toLowerCase().includes('not available'));
|
||||
|
||||
if (this.filter.filterType == "radio") {
|
||||
this.filter.radioValue = "";
|
||||
this.filter.values.forEach(value => {
|
||||
|
|
|
@ -33,9 +33,9 @@ export class RefineResultsUtils {
|
|||
value.name =this.removePartAfterCharacters(value,"||");
|
||||
value.number = field[i].count;
|
||||
value.id = field[i].id;
|
||||
if(RefineResultsUtils.includeValue(value)){
|
||||
//if(RefineResultsUtils.includeValue(value)){
|
||||
filter.values.push(value);
|
||||
}
|
||||
//}
|
||||
|
||||
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue