app: remove nav item disable matching

Signed-off-by: Patrik Oldsberg <poldsberg@gmail.com>
This commit is contained in:
Patrik Oldsberg
2026-05-19 10:48:24 +02:00
parent a29edc58fb
commit 6651f2be06
-8
View File
@@ -188,14 +188,6 @@ function NavContentRenderer(props: {
return [];
}
// TODO: Nav items are deprecated, and this code covers for a documented ability to use nav items still in config to disable pages in the sidebar.
// Remove this code once nav items are completely gone from the codebase.
const navItemNodeId = node.spec.id.replace(/^page:/, 'nav-item:');
const navItemNode = tree.nodes.get(navItemNodeId);
if (navItemNode?.spec.disabled) {
return [];
}
const routeRef = node.instance.getData(coreExtensionData.routeRef);
if (!routeRef) {
return [];