Skip to content

Commit

Permalink
Merge pull request #36929 from rezkiy37/fix/36859-no-search-when-many…
Browse files Browse the repository at this point in the history
…-tags

Show a search bar when there is a lot of tags

(cherry picked from commit ba7f01d)
  • Loading branch information
Beamanator authored and OSBotify committed Feb 21, 2024
1 parent 8444d1c commit 46ce54a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/TagPicker/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ function TagPicker({selectedTag, tag, tagIndex, policyTags, policyRecentlyUsedTa

const policyRecentlyUsedTagsList = lodashGet(policyRecentlyUsedTags, tag, []);
const policyTagList = PolicyUtils.getTagList(policyTags, tagIndex);
const policyTagsCount = PolicyUtils.getCountOfEnabledTagsOfList(policyTagList);
const policyTagsCount = PolicyUtils.getCountOfEnabledTagsOfList(policyTagList.tags);
const isTagsCountBelowThreshold = policyTagsCount < CONST.TAG_LIST_THRESHOLD;

const shouldShowTextInput = !isTagsCountBelowThreshold;
Expand Down

0 comments on commit 46ce54a

Please sign in to comment.