|
|
@@ -276,8 +276,9 @@ export class MenuService {
|
|
|
orderBy: [{ order: 'asc' }, { id: 'asc' }],
|
|
|
});
|
|
|
|
|
|
- // If you’re normalizing structure first:
|
|
|
- const menus = hoistSubmenusToDirectory(baseMenus);
|
|
|
+ // ❌ REMOVED hoisting - it destroys proper MENU → SUBMENU hierarchy
|
|
|
+ // Frontend now expects proper nested tree structure
|
|
|
+ const menus = baseMenus;
|
|
|
|
|
|
if (isSuper) {
|
|
|
const tree = this.fillChildren(this.buildMenuMap(menus), null);
|