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
  • Loading branch information
Beamanator authored Feb 21, 2024
2 parents 74540f8 + 7438d94 commit ba7f01d
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 ba7f01d

Please sign in to comment.