From 46ce54aebdf30d45d20dab45670839619d0ff1d5 Mon Sep 17 00:00:00 2001 From: Alex Beaman Date: Wed, 21 Feb 2024 14:12:22 +0200 Subject: [PATCH] Merge pull request #36929 from rezkiy37/fix/36859-no-search-when-many-tags Show a search bar when there is a lot of tags (cherry picked from commit ba7f01d8b84968af3d263d0c132539f5f9b70f39) --- src/components/TagPicker/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/TagPicker/index.js b/src/components/TagPicker/index.js index 94b91c66f154..341ea9cddae9 100644 --- a/src/components/TagPicker/index.js +++ b/src/components/TagPicker/index.js @@ -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;