💄 fix lgtm alert

This commit is contained in:
afc163 2018-12-22 19:45:24 +08:00
parent 88615024b1
commit cdfdae51ed
No known key found for this signature in database
GPG Key ID: 5F00908D72002306

View File

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