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