@zengenti/contensis-react-base 3.0.0-beta.34 → 3.0.0-beta.35
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 +2 -6
- package/cjs/search.js.map +1 -1
- package/esm/search.js +2 -6
- package/esm/search.js.map +1 -1
- package/package-lock.json +2 -2
- package/package.json +1 -1
package/cjs/search.js
CHANGED
|
@@ -1229,18 +1229,14 @@ const searchUriTemplate = {
|
|
|
1229
1229
|
const currentSearch = !term && getImmutableOrJS(state, ['routing', 'location', 'search']);
|
|
1230
1230
|
const currentQs = removeEmptyAttributes(queryString.parse(currentSearch));
|
|
1231
1231
|
if (orderBy) currentQs.orderBy = orderBy;
|
|
1232
|
-
const searchTerm = getSearchTerm(state); //
|
|
1233
|
-
// to build the new Qs.
|
|
1232
|
+
const searchTerm = getSearchTerm(state); // Merge the stateFilters with any current qs to build the new qs
|
|
1234
1233
|
|
|
1235
1234
|
const mergedSearch = removeEmptyAttributes({ ...merge__default["default"](currentQs, stateFilters),
|
|
1236
1235
|
term: searchTerm
|
|
1237
1236
|
});
|
|
1238
1237
|
return queryString.stringify(mergedSearch);
|
|
1239
1238
|
},
|
|
1240
|
-
hash:
|
|
1241
|
-
$path: 'state',
|
|
1242
|
-
$formatting: state => getImmutableOrJS(state, ['routing', 'location', 'hash'], '').replace('#', '')
|
|
1243
|
-
}
|
|
1239
|
+
hash: state => getImmutableOrJS(state, ['routing', 'location', 'hash'], '').replace('#', '')
|
|
1244
1240
|
};
|
|
1245
1241
|
|
|
1246
1242
|
const mapStateToSearchUri = params => mapJson__default["default"](params, searchUriTemplate);
|