willba-component-library 0.1.48 → 0.1.49
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/FilterBarTypes.d.ts +1 -1
- package/lib/index.d.ts +1 -1
- package/lib/index.esm.js +3 -3
- package/lib/index.esm.js.map +1 -1
- package/lib/index.js +3 -3
- package/lib/index.js.map +1 -1
- package/lib/index.umd.js +3 -3
- package/lib/index.umd.js.map +1 -1
- package/package.json +1 -1
- package/src/components/FilterBar/FilterBar.stories.tsx +1 -1
- package/src/components/FilterBar/FilterBarTypes.ts +1 -1
- package/src/components/FilterBar/hooks/useFilterBar.tsx +3 -5
package/lib/index.d.ts
CHANGED
package/lib/index.esm.js
CHANGED
|
@@ -3970,7 +3970,7 @@ var useFilterBar = function (_a) {
|
|
|
3970
3970
|
? format(calendarRange.from, 'yyyy-MM-dd')
|
|
3971
3971
|
: '',
|
|
3972
3972
|
endDate: (calendarRange === null || calendarRange === void 0 ? void 0 : calendarRange.to) ? format(calendarRange.to, 'yyyy-MM-dd') : '',
|
|
3973
|
-
categories: categories,
|
|
3973
|
+
categories: categories.toString(),
|
|
3974
3974
|
ageCategoryCounts: handleAgeCategoryRules({
|
|
3975
3975
|
ageCategoryCounts: ageCategoryCounts,
|
|
3976
3976
|
ageCategories: ageCategories,
|
|
@@ -4016,9 +4016,9 @@ var useFilterBar = function (_a) {
|
|
|
4016
4016
|
if (onSubmit) {
|
|
4017
4017
|
var updatedParamsObject_1 = {};
|
|
4018
4018
|
updatedParams.forEach(function (value, key) {
|
|
4019
|
-
|
|
4019
|
+
if (value)
|
|
4020
|
+
updatedParamsObject_1[key] = value;
|
|
4020
4021
|
});
|
|
4021
|
-
console.log('sdasdasdsad', updatedParamsObject_1);
|
|
4022
4022
|
return onSubmit(updatedParamsObject_1);
|
|
4023
4023
|
}
|
|
4024
4024
|
return (window.location.href = updatedUrl);
|