fix(api): apply feedbacks

This commit is contained in:
yassinedorbozgithub
2025-01-08 16:39:17 +01:00
parent 54e5a38661
commit f9f764f3fe
5 changed files with 13 additions and 11 deletions

View File

@@ -126,7 +126,9 @@ export class MenuService extends BaseService<Menu, MenuPopulate, MenuFull> {
parent: string | symbol = this.RootSymbol,
): MenuTree {
const item = parents.get(parent);
if (!item) return [];
if (!item) {
return [];
}
const children: MenuTree = item.map((menu) => {
return {
...menu,