mirror of
https://github.com/DSpace/dspace-angular.git
synced 2025-10-07 10:04:11 +00:00
Filters disappeared on reload
This commit is contained in:
@@ -88,14 +88,16 @@ export class SearchFiltersComponent implements OnInit, OnDestroy {
|
|||||||
}
|
}
|
||||||
|
|
||||||
ngOnInit(): void {
|
ngOnInit(): void {
|
||||||
this.clearParams = this.searchConfigService.getCurrentFrontendFilters().pipe(
|
this.router.events.subscribe(() => {
|
||||||
tap(() => this.filtersWithComputedVisibility = 0),
|
this.clearParams = this.searchConfigService.getCurrentFrontendFilters().pipe(
|
||||||
map((filters) => {
|
tap(() => this.filtersWithComputedVisibility = 0),
|
||||||
Object.keys(filters).forEach((f) => filters[f] = null);
|
map((filters) => {
|
||||||
return filters;
|
Object.keys(filters).forEach((f) => filters[f] = null);
|
||||||
})
|
return filters;
|
||||||
);
|
})
|
||||||
this.searchLink = this.getSearchLink();
|
);
|
||||||
|
this.searchLink = this.getSearchLink();
|
||||||
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Reference in New Issue
Block a user