willba-component-library 0.1.48 → 0.1.50

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.umd.js CHANGED
@@ -3992,7 +3992,7 @@
3992
3992
  ? format(calendarRange.from, 'yyyy-MM-dd')
3993
3993
  : '',
3994
3994
  endDate: (calendarRange === null || calendarRange === void 0 ? void 0 : calendarRange.to) ? format(calendarRange.to, 'yyyy-MM-dd') : '',
3995
- categories: categories,
3995
+ categories: categories.toString(),
3996
3996
  ageCategoryCounts: handleAgeCategoryRules({
3997
3997
  ageCategoryCounts: ageCategoryCounts,
3998
3998
  ageCategories: ageCategories,
@@ -4035,12 +4035,12 @@
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 && selectedPath === '/rooms') {
4039
4039
  var updatedParamsObject_1 = {};
4040
4040
  updatedParams.forEach(function (value, key) {
4041
- updatedParamsObject_1[key] = value;
4041
+ if (value)
4042
+ updatedParamsObject_1[key] = value;
4042
4043
  });
4043
- console.log('sdasdasdsad', updatedParamsObject_1);
4044
4044
  return onSubmit(updatedParamsObject_1);
4045
4045
  }
4046
4046
  return (window.location.href = updatedUrl);
@@ -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 && selectedPath === '/rooms'
4067
4067
  ? onSubmit(newParams)
4068
4068
  : (window.location.href = "".concat(redirectUrl, "/").concat(selectedPath).concat(querySearchParams ? "?".concat(querySearchParams.toString()) : ''));
4069
4069
  }