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.umd.js
CHANGED
|
@@ -8081,8 +8081,11 @@
|
|
|
8081
8081
|
: '',
|
|
8082
8082
|
endDate: (calendarRange === null || calendarRange === void 0 ? void 0 : calendarRange.to) ? format(calendarRange.to, 'yyyy-MM-dd') : '',
|
|
8083
8083
|
categories: categories,
|
|
8084
|
-
ageCategoryCounts:
|
|
8084
|
+
ageCategoryCounts: Object.entries(ageCategoryCounts).length
|
|
8085
|
+
? JSON.stringify(ageCategoryCounts)
|
|
8086
|
+
: '',
|
|
8085
8087
|
};
|
|
8088
|
+
console.log(params);
|
|
8086
8089
|
for (var _i = 0, _a = Object.entries(params); _i < _a.length; _i++) {
|
|
8087
8090
|
var _b = _a[_i], key = _b[0], value = _b[1];
|
|
8088
8091
|
if (value) {
|
|
@@ -10528,7 +10531,7 @@
|
|
|
10528
10531
|
// Scroll in to view
|
|
10529
10532
|
var targetFilterBarRef = React__default.useRef(null);
|
|
10530
10533
|
React__default.useEffect(function () {
|
|
10531
|
-
if (window !== undefined && window.innerWidth
|
|
10534
|
+
if (window !== undefined && window.innerWidth > 960)
|
|
10532
10535
|
return;
|
|
10533
10536
|
if (targetFilterBarRef.current && selectedFilter) {
|
|
10534
10537
|
window.scrollTo({
|