labsense-ui-kit 1.2.78 → 1.2.79

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/dist/index.js CHANGED
@@ -9354,10 +9354,11 @@ var Sidebar = function Sidebar(_ref22) {
9354
9354
  };
9355
9355
  var isRouteActive = function isRouteActive(item) {
9356
9356
  var _item$children2;
9357
+ if (!item.url || item.url === '#') return false;
9357
9358
  var currentBase = getBasePath(location.pathname);
9358
9359
  var itemBase = item.activeUrl ? getBasePath(item.activeUrl) : getBasePath(item.url);
9359
9360
  return currentBase === itemBase || ((_item$children2 = item.children) === null || _item$children2 === void 0 ? void 0 : _item$children2.some(function (child) {
9360
- return currentBase === getBasePath(child.activeUrl) || currentBase === getBasePath(child.url);
9361
+ return child.url && currentBase === getBasePath(child.activeUrl) || child.url && currentBase === getBasePath(child.url);
9361
9362
  }));
9362
9363
  };
9363
9364
  var ChildLink = React__default.memo(function (_ref23) {