mirror of
https://github.com/dbeaver/cloudbeaver.git
synced 2026-09-24 16:04:36 +08:00
CB-3753 cleanup
This commit is contained in:
@@ -95,7 +95,7 @@ export const useInputAutocomplete = (
|
||||
return [];
|
||||
}
|
||||
|
||||
return this.search.searchResult ?? [];
|
||||
return this.search.searchResult;
|
||||
},
|
||||
}),
|
||||
{
|
||||
|
||||
@@ -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> = {
|
||||
|
||||
Reference in New Issue
Block a user