willba-component-library 0.1.26 → 0.1.28
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/index.esm.js +5 -2
- package/lib/index.esm.js.map +1 -1
- package/lib/index.js +5 -2
- package/lib/index.js.map +1 -1
- package/lib/index.umd.js +5 -2
- package/lib/index.umd.js.map +1 -1
- package/package.json +1 -1
- package/src/components/FilterBar/FilterBar.tsx +1 -1
- package/src/components/FilterBar/hooks/useFilterBar.tsx +5 -1
package/lib/index.js
CHANGED
|
@@ -8079,8 +8079,11 @@ function useFilterBar(_a) {
|
|
|
8079
8079
|
: '',
|
|
8080
8080
|
endDate: (calendarRange === null || calendarRange === void 0 ? void 0 : calendarRange.to) ? format(calendarRange.to, 'yyyy-MM-dd') : '',
|
|
8081
8081
|
categories: categories,
|
|
8082
|
-
ageCategoryCounts:
|
|
8082
|
+
ageCategoryCounts: Object.entries(ageCategoryCounts).length
|
|
8083
|
+
? JSON.stringify(ageCategoryCounts)
|
|
8084
|
+
: '',
|
|
8083
8085
|
};
|
|
8086
|
+
console.log(params);
|
|
8084
8087
|
for (var _i = 0, _a = Object.entries(params); _i < _a.length; _i++) {
|
|
8085
8088
|
var _b = _a[_i], key = _b[0], value = _b[1];
|
|
8086
8089
|
if (value) {
|
|
@@ -10526,7 +10529,7 @@ function FilterBar(_a) {
|
|
|
10526
10529
|
// Scroll in to view
|
|
10527
10530
|
var targetFilterBarRef = React__default.useRef(null);
|
|
10528
10531
|
React__default.useEffect(function () {
|
|
10529
|
-
if (window !== undefined && window.innerWidth
|
|
10532
|
+
if (window !== undefined && window.innerWidth > 960)
|
|
10530
10533
|
return;
|
|
10531
10534
|
if (targetFilterBarRef.current && selectedFilter) {
|
|
10532
10535
|
window.scrollTo({
|