willba-component-library 0.1.50 → 0.1.52
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/lib/components/FilterBar/FilterBar.d.ts +1 -1
- package/lib/components/FilterBar/hooks/useFilterBar.d.ts +1 -1
- package/lib/index.d.ts +1 -1
- package/lib/index.esm.js +2 -2
- package/lib/index.esm.js.map +1 -1
- package/lib/index.js +2 -2
- package/lib/index.js.map +1 -1
- package/lib/index.umd.js +2 -2
- package/lib/index.umd.js.map +1 -1
- package/package.json +1 -1
- package/src/components/FilterBar/FilterBar.stories.tsx +4 -1
- package/src/components/FilterBar/FilterBar.tsx +1 -1
- package/src/components/FilterBar/hooks/useFilterBar.tsx +3 -4
package/lib/index.js
CHANGED
|
@@ -4033,7 +4033,7 @@ var useFilterBar = function (_a) {
|
|
|
4033
4033
|
var baseUrl = window.location.origin + window.location.pathname;
|
|
4034
4034
|
var updatedUrl = "".concat(baseUrl, "?").concat(updatedParams.toString());
|
|
4035
4035
|
handleSelectedFilter(false);
|
|
4036
|
-
if (onSubmit
|
|
4036
|
+
if (onSubmit) {
|
|
4037
4037
|
var updatedParamsObject_1 = {};
|
|
4038
4038
|
updatedParams.forEach(function (value, key) {
|
|
4039
4039
|
if (value)
|
|
@@ -4061,7 +4061,7 @@ var useFilterBar = function (_a) {
|
|
|
4061
4061
|
finally { if (e_3) throw e_3.error; }
|
|
4062
4062
|
}
|
|
4063
4063
|
handleSelectedFilter(false);
|
|
4064
|
-
return onSubmit
|
|
4064
|
+
return onSubmit
|
|
4065
4065
|
? onSubmit(newParams)
|
|
4066
4066
|
: (window.location.href = "".concat(redirectUrl, "/").concat(selectedPath).concat(querySearchParams ? "?".concat(querySearchParams.toString()) : ''));
|
|
4067
4067
|
}
|