Merge pull request #182 from Shadowsight9/main
fix(projects): the length of routes children list should greater than 0
This commit is contained in:
commit
506ffb8adf
@ -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