Skip to content

Commit

Permalink
Add some more comments
Browse files Browse the repository at this point in the history
  • Loading branch information
eatyourgreens committed Jun 17, 2024
1 parent 3d63f73 commit 7e46e7d
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 7e46e7d

Please sign in to comment.