fix: menu parse
This commit is contained in:
@@ -28,7 +28,7 @@ export const parseMenuItems = (
|
||||
return {
|
||||
key: removeLeadingSlashes(item.path),
|
||||
label: item.menu.title,
|
||||
children: children && children.length > 0 ? children : 0,
|
||||
children: children && children.length > 0 ? children : undefined,
|
||||
};
|
||||
})
|
||||
.filter((p) => !!p);
|
||||
|
||||
Reference in New Issue
Block a user