From e2e93c2a3f109a3b9d6d44bd609b4a56b9906bbb Mon Sep 17 00:00:00 2001 From: tangly1024 Date: Sun, 26 Mar 2023 12:02:31 +0800 Subject: [PATCH] fix-build --- themes/fukasawa/components/MenuList.js | 4 ++++ themes/hexo/components/MenuListSide.js | 5 +++++ themes/hexo/components/MenuListTop.js | 4 ++++ themes/matery/components/MenuListSide.js | 7 +++++- themes/matery/components/MenuListTop.js | 7 +++++- themes/medium/components/MenuBarMobile.js | 4 ++++ themes/medium/components/TopNavBar.js | 4 ++++ themes/next/components/MenuList.js | 4 ++++ themes/nobelium/components/Nav.js | 8 +++++-- themes/simple/components/NavBar.js | 27 ++--------------------- 10 files changed, 45 insertions(+), 29 deletions(-) diff --git a/themes/fukasawa/components/MenuList.js b/themes/fukasawa/components/MenuList.js index 2ec96622..b5647a33 100644 --- a/themes/fukasawa/components/MenuList.js +++ b/themes/fukasawa/components/MenuList.js @@ -25,6 +25,10 @@ export const MenuList = (props) => { links = customMenu } + if (!links || links.length === 0) { + return null + } + return (<>