💄 fix lgtm alert

pull/13786/head
afc163 6 years ago
parent 88615024b1
commit cdfdae51ed
No known key found for this signature in database
GPG Key ID: 5F00908D72002306

@ -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…
Cancel
Save