[develop | DONE | FIXED] Search pages: extra fixes for custom filter
This commit is contained in:
parent
56faf6f6a4
commit
9c8a67e612
|
@ -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;
|
||||
}
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue