Skip to content

Commit

Permalink
RC #291 - Updating routeToState in Typesense utils
Browse files Browse the repository at this point in the history
  • Loading branch information
dleadbetter committed Aug 14, 2024
1 parent 999c941 commit 88fa1ef
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion packages/core-data/src/utils/Typesense.js
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ const createRouting = (config: TypesenseConfig) => ({
},

routeToState: (state: any) => {
const { q, ...facets } = state;
const { q, event_range_facet: range, ...facets } = state;

console.log(state);

Expand All @@ -77,6 +77,7 @@ const createRouting = (config: TypesenseConfig) => ({

if (Object.keys(facets).length > 0) {
uiState[config.index_name].refinementList = facets;
uiState[config.index_name].range = range;
}

return uiState;
Expand Down

0 comments on commit 88fa1ef

Please sign in to comment.