fix(projects): the length of routes children list should greater than 0
This commit is contained in:
parent
960b436c79
commit
e1afc10b80
@ -10,7 +10,7 @@ export function transformAuthRouteToMenu(routes: AuthRoute.Route[]): App.GlobalM
|
||||
const { name, path, meta } = route;
|
||||
const routeName = name as string;
|
||||
let menuChildren: App.GlobalMenuOption[] | undefined;
|
||||
if (route.children) {
|
||||
if (route.children && route.children.length > 0) {
|
||||
menuChildren = transformAuthRouteToMenu(route.children);
|
||||
}
|
||||
const menuItem: App.GlobalMenuOption = addPartialProps({
|
||||
|
Loading…
Reference in New Issue
Block a user