Merge pull request #4077 from arvoConsultores/DS-4053

Filters disappeared on reload
This commit is contained in:
Alan Orth
2025-03-14 16:23:57 +03:00
committed by GitHub

View File

@@ -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();
});
} }
/** /**