diff --git a/packages/app-project/src/shared/components/CollectionsModal/components/SelectCollection/SelectCollection.js b/packages/app-project/src/shared/components/CollectionsModal/components/SelectCollection/SelectCollection.js index 629d7166d46..080f0b6463c 100644 --- a/packages/app-project/src/shared/components/CollectionsModal/components/SelectCollection/SelectCollection.js +++ b/packages/app-project/src/shared/components/CollectionsModal/components/SelectCollection/SelectCollection.js @@ -53,6 +53,9 @@ function SelectCollection ({ return `${collection.display_name} (${collection.links.owner.display_name})` } + /* + If the search text is long enough, use fuzzy full-text search. Otherwise, filter collections by display name. + */ const options = searchText.length > MIN_SEARCH_LENGTH ? collections : collections.filter(collectionNameFilter)