From c9bd271c21fb65a6494d3c66b29fb4c5bdaea46e Mon Sep 17 00:00:00 2001 From: MichalKinas Date: Wed, 9 Sep 2026 13:36:07 +0200 Subject: [PATCH] [MNT-25235] CR fixes --- .../search-filter-autocomplete-chips.component.html | 2 +- .../src/lib/search/services/search.service.ts | 10 +++++++--- 2 files changed, 8 insertions(+), 4 deletions(-) diff --git a/lib/content-services/src/lib/search/components/search-filter-autocomplete-chips/search-filter-autocomplete-chips.component.html b/lib/content-services/src/lib/search/components/search-filter-autocomplete-chips/search-filter-autocomplete-chips.component.html index f90931fbc3..d8fb9fa368 100644 --- a/lib/content-services/src/lib/search/components/search-filter-autocomplete-chips/search-filter-autocomplete-chips.component.html +++ b/lib/content-services/src/lib/search/components/search-filter-autocomplete-chips/search-filter-autocomplete-chips.component.html @@ -5,7 +5,7 @@ [allowOnlyPredefinedValues]="settings.allowOnlyPredefinedValues" (inputChanged)="onInputChange($event)" [compareOption]="optionComparator" - [placeholder]="settings?.label" + [placeholder]="settings?.label ?? 'SEARCH.FILTER.ACTIONS.ADD_OPTION'" [loading]="loading$" (optionsChanged)="onOptionsChange($event)" /> diff --git a/lib/content-services/src/lib/search/services/search.service.ts b/lib/content-services/src/lib/search/services/search.service.ts index d71224b329..9fbf445436 100644 --- a/lib/content-services/src/lib/search/services/search.service.ts +++ b/lib/content-services/src/lib/search/services/search.service.ts @@ -83,9 +83,13 @@ export class SearchService { const promise = this.searchApi.search(queryBody); if (shouldEmit) { - promise.then((nodePaging) => { - this.dataLoaded.next(nodePaging); - }); + promise + .then((nodePaging) => { + this.dataLoaded.next(nodePaging); + }) + .catch(() => { + /* error is surfaced to subscribers through the returned Observable */ + }); } return from(promise);