diff --git a/app/components/DocumentExplorer.tsx b/app/components/DocumentExplorer.tsx index b8209b5a1b..deea43782f 100644 --- a/app/components/DocumentExplorer.tsx +++ b/app/components/DocumentExplorer.tsx @@ -78,10 +78,6 @@ function DocumentExplorer({ onSubmit, onSelect, items, defaultValue }: Props) { const VERTICAL_PADDING = 6; const HORIZONTAL_PADDING = 24; - const recentlyViewedItemIds = documents.recentlyViewed - .slice(0, 5) - .map((item) => item.id); - const searchIndex = React.useMemo( () => new FuzzySearch(items, ["title"], { @@ -130,7 +126,6 @@ function DocumentExplorer({ onSubmit, onSelect, items, defaultValue }: Props) { return searchTerm ? searchIndex.search(searchTerm) : items - .filter((item) => recentlyViewedItemIds.includes(item.id)) .concat( items.filter((item) => item.type === NavigationNodeType.Collection) )