Skip to content

Commit

Permalink
RC #291 - Fixing issue with facet fields in FacetStateContextProvider
Browse files Browse the repository at this point in the history
  • Loading branch information
dleadbetter committed Aug 15, 2024
1 parent 08495be commit 7e3fbcc
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 10 deletions.
12 changes: 6 additions & 6 deletions packages/core-data/src/components/FacetStateContextProvider.js
Original file line number Diff line number Diff line change
Expand Up @@ -123,17 +123,17 @@ const FacetStateContextProvider = (props: Props) => {
attributes
}}
>
{ _.map(listFacets, (attribute) => (
{ _.map(listFacets, (facet) => (
<RefinementListProxy
attribute={attribute}
key={attribute}
attribute={facet.name}
key={facet.name}
useRefinementList={props.useRefinementList}
/>
))}
{ _.map(rangeFacets, (attribute) => (
{ _.map(rangeFacets, (facet) => (
<RangeProxy
attribute={attribute}
key={attribute}
attribute={facet.name}
key={facet.name}
useRange={props.useRange}
/>
))}
Expand Down
4 changes: 0 additions & 4 deletions packages/core-data/src/utils/Typesense.js
Original file line number Diff line number Diff line change
Expand Up @@ -41,8 +41,6 @@ const createRouting = (config: TypesenseConfig) => ({
const uiState = state[config.index_name] || {};
const { range, refinementList } = uiState;

console.log(uiState);

let route = {
q: uiState.query
};
Expand All @@ -67,8 +65,6 @@ const createRouting = (config: TypesenseConfig) => ({
routeToState: (state: any) => {
const { q, event_range_facet: eventRangeFacet, ...facets } = state;

console.log(state);

const uiState = {
[config.index_name]: {
query: q,
Expand Down

0 comments on commit 7e3fbcc

Please sign in to comment.