willba-component-library 0.1.50 → 0.1.52

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
@@ -4035,7 +4035,7 @@
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 && selectedPath === '/rooms') {
4038
+ if (onSubmit) {
4039
4039
  var updatedParamsObject_1 = {};
4040
4040
  updatedParams.forEach(function (value, key) {
4041
4041
  if (value)
@@ -4063,7 +4063,7 @@
4063
4063
  finally { if (e_3) throw e_3.error; }
4064
4064
  }
4065
4065
  handleSelectedFilter(false);
4066
- return onSubmit && selectedPath === '/rooms'
4066
+ return onSubmit
4067
4067
  ? onSubmit(newParams)
4068
4068
  : (window.location.href = "".concat(redirectUrl, "/").concat(selectedPath).concat(querySearchParams ? "?".concat(querySearchParams.toString()) : ''));
4069
4069
  }