Skip to content

Commit

Permalink
Removing invalid function from compatibilityLAyer
Browse files Browse the repository at this point in the history
  • Loading branch information
wender committed Feb 21, 2024
1 parent 68d95fd commit 5b5ac8d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 12 deletions.
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,9 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.

## [Unreleased]

### Fixed
- Removing invalid function from compatibilityLAyer

## [3.129.5] - 2024-02-02

### Added
Expand Down
12 changes: 0 additions & 12 deletions react/utils/compatibilityLayer.js
Original file line number Diff line number Diff line change
Expand Up @@ -53,21 +53,9 @@ export const buildSelectedFacetsAndFullText = (query, map, priceRange) => {
return [selectedFacets, fullText]
}

const addMap = facet => {
facet.map = facet.key

if (facet.children) {
facet.children.forEach(facetChild => addMap(facetChild))
}
}

export const detachFiltersByType = facets => {
facets.forEach(facet => facet.facets.forEach(value => addMap(value)))

const byType = groupBy(filter => filter.type)

const groupedFilters = byType(facets)

const brands = pathOr([], ['BRAND', 0, 'facets'], groupedFilters)
const brandsQuantity =
groupedFilters &&
Expand Down

0 comments on commit 5b5ac8d

Please sign in to comment.