[MNT-25235] CR fixes

This commit is contained in:
MichalKinas
2026-09-09 13:36:07 +02:00
parent 53a4ae086f
commit c9bd271c21
2 changed files with 8 additions and 4 deletions
@@ -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)" />
@@ -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);