@telia/teddy 0.0.42 → 0.0.43
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.
|
@@ -489,7 +489,7 @@ function Root({
|
|
|
489
489
|
}) {
|
|
490
490
|
const [selectedMenuItem, setSelectedMenuItem] = React.useState(getInitialMenuItem(currentPath));
|
|
491
491
|
const [selectedDomainItem, setSelectedDomainItem] = React.useState(getInitialDomain(currentPath));
|
|
492
|
-
const [pathname, setPathname] = React.useState("");
|
|
492
|
+
const [pathname, setPathname] = React.useState(currentPath || "");
|
|
493
493
|
const classes = clsx([styles[`${rootClassName}`]], className);
|
|
494
494
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
495
495
|
RootContext.Provider,
|
|
@@ -487,7 +487,7 @@ function Root({
|
|
|
487
487
|
}) {
|
|
488
488
|
const [selectedMenuItem, setSelectedMenuItem] = React__default.useState(getInitialMenuItem(currentPath));
|
|
489
489
|
const [selectedDomainItem, setSelectedDomainItem] = React__default.useState(getInitialDomain(currentPath));
|
|
490
|
-
const [pathname, setPathname] = React__default.useState("");
|
|
490
|
+
const [pathname, setPathname] = React__default.useState(currentPath || "");
|
|
491
491
|
const classes = clsx([styles[`${rootClassName}`]], className);
|
|
492
492
|
return /* @__PURE__ */ jsx(
|
|
493
493
|
RootContext.Provider,
|