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 CHANGED
@@ -8059,8 +8059,11 @@ function useFilterBar(_a) {
8059
8059
  : '',
8060
8060
  endDate: (calendarRange === null || calendarRange === void 0 ? void 0 : calendarRange.to) ? format(calendarRange.to, 'yyyy-MM-dd') : '',
8061
8061
  categories: categories,
8062
- ageCategoryCounts: JSON.stringify(ageCategoryCounts),
8062
+ ageCategoryCounts: Object.entries(ageCategoryCounts).length
8063
+ ? JSON.stringify(ageCategoryCounts)
8064
+ : '',
8063
8065
  };
8066
+ console.log(params);
8064
8067
  for (var _i = 0, _a = Object.entries(params); _i < _a.length; _i++) {
8065
8068
  var _b = _a[_i], key = _b[0], value = _b[1];
8066
8069
  if (value) {
@@ -10506,7 +10509,7 @@ function FilterBar(_a) {
10506
10509
  // Scroll in to view
10507
10510
  var targetFilterBarRef = useRef(null);
10508
10511
  useEffect(function () {
10509
- if (window !== undefined && window.innerWidth < 960)
10512
+ if (window !== undefined && window.innerWidth > 960)
10510
10513
  return;
10511
10514
  if (targetFilterBarRef.current && selectedFilter) {
10512
10515
  window.scrollTo({