fix: menu parse

This commit is contained in:
jackycheng
2025-02-14 10:49:38 +08:00
parent 1216e08bb9
commit f18aa76676

View File

@@ -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);