Skip to content

Commit

Permalink
#23 selected label used
Browse files Browse the repository at this point in the history
console removed
  • Loading branch information
nickdos committed Sep 27, 2022
1 parent f34edc9 commit d2498ae
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/react/src/components/FacetsBar.js
Original file line number Diff line number Diff line change
Expand Up @@ -38,14 +38,14 @@ function filterFacetValues(field, values) {
Object.keys(thisFacetFilter).includes(val.name)
)
filteredValues.forEach((valObj) => {
valObj.label = thisFacetFilter[valObj.name]
const thisValue = valObj
thisValue.label = thisFacetFilter[valObj.name]
})
returnValues.push(...filteredValues)
} else {
returnValues.push(...values)
}

console.log('returnValues', returnValues)
return returnValues
}

Expand Down

0 comments on commit d2498ae

Please sign in to comment.