Skip to content

Commit

Permalink
take keywords into consideration during search on platformSelector
Browse files Browse the repository at this point in the history
  • Loading branch information
a-hariti committed Apr 24, 2024
1 parent 15e2752 commit 70d8e9a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/platformSelector/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ export function PlatformSelector({
return platformsAndGuides;
}
// any of these fields can be used to match the search value
const keys = ['title', 'aliases', 'sdk'];
const keys = ['title', 'aliases', 'sdk', 'keywords'];
const matches_ = matchSorter(platformsAndGuides, searchValue, {keys});
// Radix Select does not work if we don't render the selected item, so we
// make sure to include it in the list of matches.
Expand Down

0 comments on commit 70d8e9a

Please sign in to comment.