willba-component-library 0.1.49 → 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.esm.js
CHANGED
|
@@ -4013,7 +4013,7 @@ var useFilterBar = function (_a) {
|
|
|
4013
4013
|
var baseUrl = window.location.origin + window.location.pathname;
|
|
4014
4014
|
var updatedUrl = "".concat(baseUrl, "?").concat(updatedParams.toString());
|
|
4015
4015
|
handleSelectedFilter(false);
|
|
4016
|
-
if (onSubmit) {
|
|
4016
|
+
if (onSubmit && selectedPath === '/rooms') {
|
|
4017
4017
|
var updatedParamsObject_1 = {};
|
|
4018
4018
|
updatedParams.forEach(function (value, key) {
|
|
4019
4019
|
if (value)
|
|
@@ -4041,7 +4041,7 @@ var useFilterBar = function (_a) {
|
|
|
4041
4041
|
finally { if (e_3) throw e_3.error; }
|
|
4042
4042
|
}
|
|
4043
4043
|
handleSelectedFilter(false);
|
|
4044
|
-
return onSubmit
|
|
4044
|
+
return onSubmit && selectedPath === '/rooms'
|
|
4045
4045
|
? onSubmit(newParams)
|
|
4046
4046
|
: (window.location.href = "".concat(redirectUrl, "/").concat(selectedPath).concat(querySearchParams ? "?".concat(querySearchParams.toString()) : ''));
|
|
4047
4047
|
}
|