@zengenti/contensis-react-base 3.0.0-beta.2 → 3.0.0-beta.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/cjs/search.js CHANGED
@@ -1538,7 +1538,7 @@ const filterParamsChanged = (action, state) => {
1538
1538
  params,
1539
1539
  ogState = state
1540
1540
  } = action;
1541
- const selectedFilters = getSelectedFilters(ogState, facet, context);
1541
+ const selectedFilters = getSelectedFilters(ogState, facet, context, 'js');
1542
1542
  const paramsChanged = Object.entries(selectedFilters).map(([filterKey, selectedValues]) => {
1543
1543
  const inboundValues = params && params[filterKey] && params[filterKey].split(',') || [];
1544
1544
  if (!areArraysEqualSets(selectedValues, inboundValues)) return true;
@@ -1554,7 +1554,7 @@ const debugExecuteSearch = (action, state) => {
1554
1554
  stateParams.pageIndex = getPageIndex(action.ogState || state, action.facet, action.context);
1555
1555
  stateParams.searchTerm = getSearchTerm(action.ogState || state);
1556
1556
  console.log(stateParams, queryParams);
1557
- console.log('getSelectedFilters', getSelectedFilters(action.ogState || state, action.facet, action.context), 'params', action.params);
1557
+ console.log('getSelectedFilters', getSelectedFilters(action.ogState || state, action.facet, action.context, 'js'), 'params', action.params);
1558
1558
  };
1559
1559
 
1560
1560
  // Base mapping, fields that are the same across all mappings