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,15 +95,13 @@ export class SearchFiltersComponent implements OnInit, OnDestroy {
|
|||||||
}
|
}
|
||||||
|
|
||||||
ngOnInit(): void {
|
ngOnInit(): void {
|
||||||
this.router.events.subscribe(() => {
|
this.clearParams = this.searchConfigService.getCurrentFrontendFilters().pipe(
|
||||||
this.clearParams = this.searchConfigService.getCurrentFrontendFilters().pipe(
|
map((filters) => {
|
||||||
map((filters) => {
|
Object.keys(filters).forEach((f) => filters[f] = null);
|
||||||
Object.keys(filters).forEach((f) => filters[f] = null);
|
return filters;
|
||||||
return filters;
|
})
|
||||||
})
|
);
|
||||||
);
|
this.searchLink = this.getSearchLink();
|
||||||
this.searchLink = this.getSearchLink();
|
|
||||||
});
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Reference in New Issue
Block a user