[develop | DONE | FIXED] Search pages: extra fixes for custom filter

This commit is contained in:
argirok 2024-02-14 10:28:54 +02:00
parent 56faf6f6a4
commit 9c8a67e612
4 changed files with 4 additions and 4 deletions

View File

@ -57,7 +57,7 @@ export class SearchDataProvidersComponent {
@Input()
set customFilter(customFilter: SearchCustomFilter | SearchCustomFilter[]) {
if(!Array.isArray(customFilter)) {
this.customFilters = [customFilter];
this.customFilters = customFilter?[customFilter]:null;
}else{
this.customFilters = customFilter;
}

View File

@ -66,7 +66,7 @@ export class SearchOrganizationsComponent {
@Input()
set customFilter(customFilter: SearchCustomFilter | SearchCustomFilter[]) {
if(!Array.isArray(customFilter)) {
this.customFilters = [customFilter];
this.customFilters = customFilter?[customFilter]:null;
}else{
this.customFilters = customFilter;
}

View File

@ -50,7 +50,7 @@ export class SearchProjectsComponent {
@Input()
set customFilter(customFilter: SearchCustomFilter | SearchCustomFilter[]) {
if(!Array.isArray(customFilter)) {
this.customFilters = [customFilter];
this.customFilters = customFilter?[customFilter]:null;
}else{
this.customFilters = customFilter;
}

View File

@ -87,7 +87,7 @@ export class SearchResearchResultsComponent {
@Input()
set customFilter(customFilter: SearchCustomFilter | SearchCustomFilter[]) {
if(!Array.isArray(customFilter)) {
this.customFilters = [customFilter];
this.customFilters = customFilter?[customFilter]:null;
}else{
this.customFilters = customFilter;
}