diff --git a/components/menu/MenuItem.tsx b/components/menu/MenuItem.tsx index 053791ab2f..542b8bd67f 100644 --- a/components/menu/MenuItem.tsx +++ b/components/menu/MenuItem.tsx @@ -18,17 +18,13 @@ class MenuItem extends React.Component { render() { const { inlineCollapsed } = this.context; const props = this.props; - const item = ; - if (inlineCollapsed && props.level === 1) { - return - {item} - ; - } - return item; + return + + ; } }