mirror of
https://github.com/hexastack/hexabot
synced 2025-06-26 18:27:28 +00:00
fix(api): apply feedbacks
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user