From ed2b08bde1ba4b838a00a147d31cf2649e5c6bb6 Mon Sep 17 00:00:00 2001 From: kulgg <75735874+kulgg@users.noreply.github.com> Date: Wed, 28 Feb 2024 14:26:58 +0100 Subject: [PATCH] . --- .../catalog-page/catalog-page/catalog-page.component.ts | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/app/routes/broker-ui/catalog-page/catalog-page/catalog-page.component.ts b/src/app/routes/broker-ui/catalog-page/catalog-page/catalog-page.component.ts index 5105f7f1c..d9cc2335a 100644 --- a/src/app/routes/broker-ui/catalog-page/catalog-page/catalog-page.component.ts +++ b/src/app/routes/broker-ui/catalog-page/catalog-page/catalog-page.component.ts @@ -71,15 +71,13 @@ export class CatalogPageComponent implements OnInit, OnDestroy { .pipe(takeUntil(this.ngOnDestroy$)) .subscribe((state) => { this.state = state; - if (this.searchText.value != state.searchText) { this.searchText.setValue(state.searchText); } if (this.sortBy.value?.sorting !== state.activeSorting?.sorting) { this.sortBy.setValue(state.activeSorting); } - - if (this.state.isPageReady && !this.expandedFilterId) { + if (!this.expandedFilterId && this.state.isPageReady) { this.expandedFilterId = this.state.fetchedData.data.availableFilters.fields[0].id; }