diff --git a/projects/rero/ng-core/src/lib/record/search-autocomplete/search-autocomplete.component.ts b/projects/rero/ng-core/src/lib/record/search-autocomplete/search-autocomplete.component.ts index 88a28be4..e94112cf 100644 --- a/projects/rero/ng-core/src/lib/record/search-autocomplete/search-autocomplete.component.ts +++ b/projects/rero/ng-core/src/lib/record/search-autocomplete/search-autocomplete.component.ts @@ -62,7 +62,7 @@ export interface IAutoComplete {
@if(item.iconClass) { - + }
@@ -124,7 +124,6 @@ export class SearchAutocompleteComponent { }); } }); - return suggestions; } else { return data[0]; @@ -150,11 +149,11 @@ export class SearchAutocompleteComponent { recordType.index, queryRecord, 1, - recordType.maxSuggestions ? recordType.maxSuggestions : 10, + recordType.maxSuggestions || 10, [], - recordType.preFilters ? recordType.preFilters : {}, + recordType.preFilters || {}, null, - recordType.sort ? recordType.sort : null, + recordType.sort || null, ).pipe( map((data: any) => recordType.processSuggestions(data, query)) ));