diff --git a/frontend/src/components/Sidebar/prepareRoutes.ts b/frontend/src/components/Sidebar/prepareRoutes.ts index 9216abeee8..7cec3befa3 100644 --- a/frontend/src/components/Sidebar/prepareRoutes.ts +++ b/frontend/src/components/Sidebar/prepareRoutes.ts @@ -295,13 +295,14 @@ function prepareRoutes( const defaultRoutes: SidebarItemProps[] = sidebars[DefaultSidebars.IN_CLUSTER]; for (const route of defaultRoutes) { const routeFiltered = - filters.length > 0 && filters.filter(f => f(route)).length !== filters.length; + !route.hide && filters.length > 0 && filters.filter(f => f(route)).length !== filters.length; if (routeFiltered) { continue; } const newSubList = route.subList?.filter( subRoute => + !subRoute.hide && !(filters.length > 0 && filters.filter(f => f(subRoute)).length !== filters.length) ); route.subList = newSubList;