CB-3753 cleanup

This commit is contained in:
sergeyteleshev
2025-01-24 03:26:39 +01:00
parent 3cd81a0116
commit 732ca111d0
2 changed files with 2 additions and 2 deletions
@@ -95,7 +95,7 @@ export const useInputAutocomplete = (
return [];
}
return this.search.searchResult ?? [];
return this.search.searchResult;
},
}),
{
+1 -1
View File
@@ -61,7 +61,7 @@ export function useSearch<T extends object>({
},
get searchResult() {
if (this.matchStrategy === 'fuzzy') {
return this.fuzzySearch.engine.searchResults;
return this.fuzzySearch.engine.searchResults ?? [];
}
const matchFunctions: Record<Exclude<SearchStrategy, 'fuzzy'>, (value: string) => boolean> = {