Skip to content

Commit

Permalink
Added QueryArgs to facets (#29)
Browse files Browse the repository at this point in the history
  • Loading branch information
chrsmutti authored Feb 7, 2020
1 parent 0c07bb1 commit f5f14dc
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,10 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.

## [Unreleased]

### Added

- Query Args to facets.

## [0.6.8] - 2020-02-06

### Added
Expand Down
4 changes: 4 additions & 0 deletions react/components/SearchQuery.js
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,10 @@ const SearchQuery = ({
priceRanges: priceRangeKey
? facets.filter(facet => facet.map === "priceRange")
: [],
queryArgs: {
query: reject(isEmpty, ["search", attributePath]).join("/"),
map: map || "s",
},
},
recordsFiltered,
};
Expand Down

0 comments on commit f5f14dc

Please sign in to comment.