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"
|
[allowOnlyPredefinedValues]="settings.allowOnlyPredefinedValues"
|
||||||
(inputChanged)="onInputChange($event)"
|
(inputChanged)="onInputChange($event)"
|
||||||
[compareOption]="optionComparator"
|
[compareOption]="optionComparator"
|
||||||
[placeholder]="settings?.label"
|
[placeholder]="settings?.label ?? 'SEARCH.FILTER.ACTIONS.ADD_OPTION'"
|
||||||
[loading]="loading$"
|
[loading]="loading$"
|
||||||
(optionsChanged)="onOptionsChange($event)" />
|
(optionsChanged)="onOptionsChange($event)" />
|
||||||
|
|
||||||
|
|||||||
@@ -83,8 +83,12 @@ export class SearchService {
|
|||||||
const promise = this.searchApi.search(queryBody);
|
const promise = this.searchApi.search(queryBody);
|
||||||
|
|
||||||
if (shouldEmit) {
|
if (shouldEmit) {
|
||||||
promise.then((nodePaging) => {
|
promise
|
||||||
|
.then((nodePaging) => {
|
||||||
this.dataLoaded.next(nodePaging);
|
this.dataLoaded.next(nodePaging);
|
||||||
|
})
|
||||||
|
.catch(() => {
|
||||||
|
/* error is surfaced to subscribers through the returned Observable */
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user