willba-component-library 0.1.79 → 0.1.80
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
|
@@ -3990,11 +3990,11 @@ var useFilterBar = function (_a) {
|
|
|
3990
3990
|
if (typeof window === 'undefined')
|
|
3991
3991
|
return;
|
|
3992
3992
|
var defaultTab = (tabs === null || tabs === void 0 ? void 0 : tabs.length) === 1 ? tabs[0] : tabs === null || tabs === void 0 ? void 0 : tabs.find(function (tab) { return tab.default; });
|
|
3993
|
-
var currentPath = (
|
|
3994
|
-
|
|
3993
|
+
var currentPath = window.location.pathname.includes(Pages.EVENTS) ||
|
|
3994
|
+
(defaultTab === null || defaultTab === void 0 ? void 0 : defaultTab.path) === Pages.EVENTS
|
|
3995
3995
|
? Pages.EVENTS
|
|
3996
|
-
: (
|
|
3997
|
-
|
|
3996
|
+
: window.location.pathname.includes(Pages.ROOMS) ||
|
|
3997
|
+
(defaultTab === null || defaultTab === void 0 ? void 0 : defaultTab.path) === Pages.ROOMS
|
|
3998
3998
|
? Pages.ROOMS
|
|
3999
3999
|
: Pages.EVENTS;
|
|
4000
4000
|
setSelectedPath(currentPath);
|