mirror of
https://github.com/ant-design/ant-design.git
synced 2024-11-25 03:29:59 +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