Skip to content

Commit

Permalink
Removes text/BOOLEAN filter from api
Browse files Browse the repository at this point in the history
  • Loading branch information
eduardoformiga committed Feb 22, 2022
1 parent 291cc3a commit 5f7effe
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions packages/api/src/platforms/vtex/resolvers/searchResult.ts
Original file line number Diff line number Diff line change
Expand Up @@ -50,12 +50,10 @@ export const StoreSearchResult: Record<string, Resolver<Root>> = {
currentFacet.key
)

const shouldFilterFromCollectionPage =
const shouldRemoveFacetFromCollectionPage =
isCollectionPage && shouldFilterFacet

const isText = currentFacet.type === 'text'

if (shouldFilterFromCollectionPage || !isText) {
if (shouldRemoveFacetFromCollectionPage) {
return acc
}

Expand Down

0 comments on commit 5f7effe

Please sign in to comment.