Skip to content

Commit

Permalink
.
Browse files Browse the repository at this point in the history
  • Loading branch information
kulgg committed Feb 28, 2024
1 parent 1a67ef8 commit ed2b08b
Showing 1 changed file with 1 addition and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit ed2b08b

Please sign in to comment.