mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2026-09-09 18:03:21 +00:00
[MNT-25235] CR fixes
This commit is contained in:
+1
-1
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user