From a433b3683e53059c6504476df2ac06ee840af7bd Mon Sep 17 00:00:00 2001 From: tangly Date: Sat, 19 Nov 2022 11:25:23 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E6=97=A0=E5=88=86=E9=A1=B5=E9=A6=96?= =?UTF-8?q?=E9=A1=B5=E5=BC=95=E5=AF=BC=E8=AF=AD=E4=BD=8D=E7=BD=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- themes/hexo/components/NavButtonGroup.js | 3 +++ themes/next/components/Header.js | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/themes/hexo/components/NavButtonGroup.js b/themes/hexo/components/NavButtonGroup.js index 9c3b27f2..7a71ee02 100644 --- a/themes/hexo/components/NavButtonGroup.js +++ b/themes/hexo/components/NavButtonGroup.js @@ -9,6 +9,9 @@ import Link from 'next/link' */ const NavButtonGroup = (props) => { const { categories } = props + if (!categories || categories.length === 0) { + return <> + } return