gramene-search 1.6.38 → 1.6.40
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/.parcel-cache/83e7562660f7cc15-BundleGraph +0 -0
- package/.parcel-cache/9a0d07555444f4da-AssetGraph +0 -0
- package/.parcel-cache/d3a1b9507cb44047-AssetGraph +0 -0
- package/.parcel-cache/data.mdb +0 -0
- package/.parcel-cache/dc1da35000e13623-RequestGraph +0 -0
- package/.parcel-cache/lock.mdb +0 -0
- package/.parcel-cache/snapshot-dc1da35000e13623.txt +2 -2
- package/dist/index.js +12 -0
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
- package/src/bundles/filters.js +8 -0
package/package.json
CHANGED
package/src/bundles/filters.js
CHANGED
|
@@ -464,6 +464,14 @@ grameneFilters.reactGrameneFilters = createSelector(
|
|
|
464
464
|
}
|
|
465
465
|
return { type: 'BATCH_ACTIONS', actions: actions };
|
|
466
466
|
}
|
|
467
|
+
if (queryObject.hasOwnProperty('sugg')) {
|
|
468
|
+
return {
|
|
469
|
+
type: 'BATCH_ACTIONS', actions: [
|
|
470
|
+
{type: 'GRAMENE_SEARCH_CLEARED'},
|
|
471
|
+
{type: 'GRAMENE_FILTER_ADDED', payload: JSON.parse(queryObject.sugg)}
|
|
472
|
+
]
|
|
473
|
+
};
|
|
474
|
+
}
|
|
467
475
|
if (queryObject.hasOwnProperty('suggestion')) {
|
|
468
476
|
const url = new URL(myUrl.href);
|
|
469
477
|
url.search = '';
|