From 7308df47ce0596aac7af726b841b69f98eb1d77d Mon Sep 17 00:00:00 2001 From: tkubica-edu Date: Mon, 11 Nov 2024 12:02:25 +0100 Subject: [PATCH] fix: opening search URL with searchTerm query set results in ExpressionChangedAfterItHasBeenCheckedError --- src/app/wlo-search/core/search-field/search-field.component.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/src/app/wlo-search/core/search-field/search-field.component.ts b/src/app/wlo-search/core/search-field/search-field.component.ts index 8294f796..11022167 100644 --- a/src/app/wlo-search/core/search-field/search-field.component.ts +++ b/src/app/wlo-search/core/search-field/search-field.component.ts @@ -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)),