|
@@ -33,9 +33,7 @@ function joinParentPath(menus: Menu[], parentPath = '') {
|
|
|
|
|
|
// Parsing the menu module
|
|
|
export function transformMenuModule(menuModule: MenuModule): Menu {
|
|
|
- const { menu } = menuModule;
|
|
|
-
|
|
|
- const menuList = [menu];
|
|
|
+ const menuList = [menuModule];
|
|
|
|
|
|
joinParentPath(menuList);
|
|
|
return menuList[0];
|