mirror of
https://github.com/DSpace/dspace-angular.git
synced 2025-10-07 01:54:15 +00:00
No need to subscribe anymore to the router events
This commit is contained in:
@@ -95,7 +95,6 @@ export class SearchFiltersComponent implements OnInit, OnDestroy {
|
||||
}
|
||||
|
||||
ngOnInit(): void {
|
||||
this.router.events.subscribe(() => {
|
||||
this.clearParams = this.searchConfigService.getCurrentFrontendFilters().pipe(
|
||||
map((filters) => {
|
||||
Object.keys(filters).forEach((f) => filters[f] = null);
|
||||
@@ -103,7 +102,6 @@ export class SearchFiltersComponent implements OnInit, OnDestroy {
|
||||
})
|
||||
);
|
||||
this.searchLink = this.getSearchLink();
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
|
Reference in New Issue
Block a user