Skip to content

Commit

Permalink
fix: converting tags to lower case to properly match the auto-complet…
Browse files Browse the repository at this point in the history
…e tags
  • Loading branch information
Tony-MK committed Dec 22, 2024
1 parent 3580f15 commit 1a471be
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/Search/SearchRouter/SearchRouterList.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -223,7 +223,7 @@ function SearchRouterList(
case CONST.SEARCH.SYNTAX_FILTER_KEYS.TAG: {
const autocompleteList = autocompleteValue ? tagAutocompleteList : recentTagsAutocompleteList ?? [];
const filteredTags = autocompleteList
.filter((tag) => tag.toLowerCase().includes(autocompleteValue.toLowerCase()) && !alreadyAutocompletedKeys.includes(tag))
.filter((tag) => tag.toLowerCase().includes(autocompleteValue.toLowerCase()) && !alreadyAutocompletedKeys.includes(tag.toLowerCase()))
.sort()
.slice(0, 10);

Expand Down

0 comments on commit 1a471be

Please sign in to comment.