mirror of
https://gitee.com/ant-design/ant-design.git
synced 2024-12-02 20:19:44 +08:00
💄 fix lgtm alert
This commit is contained in:
parent
88615024b1
commit
cdfdae51ed
@ -228,7 +228,7 @@ export default class MainContent extends React.PureComponent {
|
||||
if (!menu) {
|
||||
return null;
|
||||
}
|
||||
if (menu && menu.type && menu.type.isMenuItem) {
|
||||
if (menu.type && menu.type.isMenuItem) {
|
||||
return menu;
|
||||
}
|
||||
if (Array.isArray(menu)) {
|
||||
|
Loading…
Reference in New Issue
Block a user