Skip to content

Commit

Permalink
refactor: set CommandItem value to document title for improved search…
Browse files Browse the repository at this point in the history
… relevance
  • Loading branch information
adityaphasu committed Sep 17, 2024
1 parent c2e2864 commit 6639989
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion components/search-command.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ export const SearchCommand = () => {
{documents?.map((document) => (
<CommandItem
key={document._id}
value={`${document._id}-${document.title}`}
value={document.title}
title={document.title}
onSelect={() => onSelect(document._id)}
>
Expand Down

0 comments on commit 6639989

Please sign in to comment.