diff --git a/src/commandpalette/widgets/build-in-sub-plugins/search-recent.ts b/src/commandpalette/widgets/build-in-sub-plugins/search-recent.ts index b963fc6..6681e19 100644 --- a/src/commandpalette/widgets/build-in-sub-plugins/search-recent.ts +++ b/src/commandpalette/widgets/build-in-sub-plugins/search-recent.ts @@ -9,7 +9,7 @@ import { lingo } from '../utils/lingo'; export const plugin = (id: string): AutocompletePlugin> => { let setContext: StateUpdater | undefined; let refresh: () => Promise | undefined; - const deleteIcon = getIconSvg('$:/core/images/delete-button'); + const deleteIcon = getIconSvg('$:/core/images/delete-button', undefined); const recentSearchesPlugin = createLocalStorageRecentSearchesPlugin({ key: `recent-${id}`, subscribe(parameters) { @@ -26,6 +26,11 @@ export const plugin = (id: string): AutocompletePlugin 0) return []; + const items = source.getItems(parameters); + return await items; + }, onSelect({ item }) { onSelect(item.id); },