Skip to content

Commit

Permalink
fix: opening search URL with searchTerm query set results in Expressi…
Browse files Browse the repository at this point in the history
…onChangedAfterItHasBeenCheckedError
  • Loading branch information
tkubica-edu committed Nov 11, 2024
1 parent 417bd9d commit 7308df4
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,7 @@ export class SearchFieldComponent implements AfterViewInit, OnInit, OnDestroy {
const { searchString, filters } = searchParameters || {};
this.searchField.setValue(searchString, { emitEvent: false });
this.filters = filters ?? {};
this.cdr.detectChanges();
});
combineLatest([
this.searchField.valueChanges.pipe(startWith(this.searchField.value)),
Expand Down

0 comments on commit 7308df4

Please sign in to comment.