@zengenti/contensis-react-base 3.0.0-beta.41 → 3.0.0-beta.42
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 +10 -7
- package/cjs/search.js.map +1 -1
- package/esm/search.js +10 -7
- package/esm/search.js.map +1 -1
- package/package-lock.json +2 -2
- package/package.json +1 -1
package/cjs/search.js
CHANGED
|
@@ -1696,14 +1696,17 @@ function* doSearch(action) {
|
|
|
1696
1696
|
ssr: getIsSsr(state),
|
|
1697
1697
|
facet: action.facet || ((_action$params = action.params) === null || _action$params === void 0 ? void 0 : _action$params.facet)
|
|
1698
1698
|
};
|
|
1699
|
-
yield effects.put(nextAction); // keep track of this state ref for comparing changes to params later
|
|
1700
1699
|
|
|
1701
|
-
|
|
1702
|
-
|
|
1703
|
-
|
|
1704
|
-
|
|
1705
|
-
|
|
1706
|
-
|
|
1700
|
+
if (nextAction.facet) {
|
|
1701
|
+
yield effects.put(nextAction); // keep track of this state ref for comparing changes to params later
|
|
1702
|
+
|
|
1703
|
+
const ogState = {
|
|
1704
|
+
search: state.search
|
|
1705
|
+
};
|
|
1706
|
+
yield effects.call(ensureSearch, { ...nextAction,
|
|
1707
|
+
ogState
|
|
1708
|
+
});
|
|
1709
|
+
}
|
|
1707
1710
|
}
|
|
1708
1711
|
|
|
1709
1712
|
function* loadFilters(action) {
|