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.js CHANGED
@@ -4033,7 +4033,7 @@ var useFilterBar = function (_a) {
4033
4033
  var baseUrl = window.location.origin + window.location.pathname;
4034
4034
  var updatedUrl = "".concat(baseUrl, "?").concat(updatedParams.toString());
4035
4035
  handleSelectedFilter(false);
4036
- if (onSubmit && selectedPath === '/rooms') {
4036
+ if (onSubmit) {
4037
4037
  var updatedParamsObject_1 = {};
4038
4038
  updatedParams.forEach(function (value, key) {
4039
4039
  if (value)
@@ -4061,7 +4061,7 @@ var useFilterBar = function (_a) {
4061
4061
  finally { if (e_3) throw e_3.error; }
4062
4062
  }
4063
4063
  handleSelectedFilter(false);
4064
- return onSubmit && selectedPath === '/rooms'
4064
+ return onSubmit
4065
4065
  ? onSubmit(newParams)
4066
4066
  : (window.location.href = "".concat(redirectUrl, "/").concat(selectedPath).concat(querySearchParams ? "?".concat(querySearchParams.toString()) : ''));
4067
4067
  }