@mercurjs/admin 2.0.0-canary.51 → 2.0.0-canary.53
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 +3 -3
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -1630,10 +1630,10 @@ var NavItem = ({
|
|
|
1630
1630
|
if (["core", "setting"].includes(type)) {
|
|
1631
1631
|
isActive = pathname.startsWith(to2);
|
|
1632
1632
|
if (isActive && !isNested && items?.length) {
|
|
1633
|
-
const
|
|
1633
|
+
const nestedIsActive = items.some(
|
|
1634
1634
|
(item) => pathname.startsWith(item.to)
|
|
1635
1635
|
);
|
|
1636
|
-
if (
|
|
1636
|
+
if (nestedIsActive) {
|
|
1637
1637
|
isActive = false;
|
|
1638
1638
|
}
|
|
1639
1639
|
}
|
|
@@ -2725,7 +2725,7 @@ var MainSidebar = () => {
|
|
|
2725
2725
|
const customRoutesWithNested = customMenuItems.sort((a, b) => (a.rank ?? 0) - (b.rank ?? 0)).map((item) => ({
|
|
2726
2726
|
label: item.label,
|
|
2727
2727
|
to: item.path,
|
|
2728
|
-
icon: item.icon ?
|
|
2728
|
+
icon: item.icon ? /* @__PURE__ */ jsx12(item.icon, {}) : void 0,
|
|
2729
2729
|
translationNs: item.translationNs,
|
|
2730
2730
|
items: addNestedItems(item.path)
|
|
2731
2731
|
}));
|