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.umd.js
CHANGED
|
@@ -4035,7 +4035,7 @@
|
|
|
4035
4035
|
var baseUrl = window.location.origin + window.location.pathname;
|
|
4036
4036
|
var updatedUrl = "".concat(baseUrl, "?").concat(updatedParams.toString());
|
|
4037
4037
|
handleSelectedFilter(false);
|
|
4038
|
-
if (onSubmit
|
|
4038
|
+
if (onSubmit) {
|
|
4039
4039
|
var updatedParamsObject_1 = {};
|
|
4040
4040
|
updatedParams.forEach(function (value, key) {
|
|
4041
4041
|
if (value)
|
|
@@ -4063,7 +4063,7 @@
|
|
|
4063
4063
|
finally { if (e_3) throw e_3.error; }
|
|
4064
4064
|
}
|
|
4065
4065
|
handleSelectedFilter(false);
|
|
4066
|
-
return onSubmit
|
|
4066
|
+
return onSubmit
|
|
4067
4067
|
? onSubmit(newParams)
|
|
4068
4068
|
: (window.location.href = "".concat(redirectUrl, "/").concat(selectedPath).concat(querySearchParams ? "?".concat(querySearchParams.toString()) : ''));
|
|
4069
4069
|
}
|