@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/esm/search.js
CHANGED
|
@@ -1526,7 +1526,7 @@ const filterParamsChanged = (action, state) => {
|
|
|
1526
1526
|
params,
|
|
1527
1527
|
ogState = state
|
|
1528
1528
|
} = action;
|
|
1529
|
-
const selectedFilters = getSelectedFilters(ogState, facet, context);
|
|
1529
|
+
const selectedFilters = getSelectedFilters(ogState, facet, context, 'js');
|
|
1530
1530
|
const paramsChanged = Object.entries(selectedFilters).map(([filterKey, selectedValues]) => {
|
|
1531
1531
|
const inboundValues = params && params[filterKey] && params[filterKey].split(',') || [];
|
|
1532
1532
|
if (!areArraysEqualSets(selectedValues, inboundValues)) return true;
|
|
@@ -1542,7 +1542,7 @@ const debugExecuteSearch = (action, state) => {
|
|
|
1542
1542
|
stateParams.pageIndex = getPageIndex(action.ogState || state, action.facet, action.context);
|
|
1543
1543
|
stateParams.searchTerm = getSearchTerm(action.ogState || state);
|
|
1544
1544
|
console.log(stateParams, queryParams);
|
|
1545
|
-
console.log('getSelectedFilters', getSelectedFilters(action.ogState || state, action.facet, action.context), 'params', action.params);
|
|
1545
|
+
console.log('getSelectedFilters', getSelectedFilters(action.ogState || state, action.facet, action.context, 'js'), 'params', action.params);
|
|
1546
1546
|
};
|
|
1547
1547
|
|
|
1548
1548
|
// Base mapping, fields that are the same across all mappings
|