From cdfdae51ed082f2efebd2277eed1dbabf0691fb8 Mon Sep 17 00:00:00 2001 From: afc163 Date: Sat, 22 Dec 2018 19:45:24 +0800 Subject: [PATCH] :lipstick: fix lgtm alert --- site/theme/template/Content/MainContent.jsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/site/theme/template/Content/MainContent.jsx b/site/theme/template/Content/MainContent.jsx index 484d1c9ae6..23ed043191 100644 --- a/site/theme/template/Content/MainContent.jsx +++ b/site/theme/template/Content/MainContent.jsx @@ -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)) {