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,6 +88,7 @@ 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(
|
||||||
tap(() => this.filtersWithComputedVisibility = 0),
|
tap(() => this.filtersWithComputedVisibility = 0),
|
||||||
map((filters) => {
|
map((filters) => {
|
||||||
@@ -96,6 +97,7 @@ export class SearchFiltersComponent implements OnInit, OnDestroy {
|
|||||||
})
|
})
|
||||||
);
|
);
|
||||||
this.searchLink = this.getSearchLink();
|
this.searchLink = this.getSearchLink();
|
||||||
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Reference in New Issue
Block a user