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