diff --git a/themes/hexo/components/NavButtonGroup.js b/themes/hexo/components/NavButtonGroup.js index d490cd7b..f1ca4297 100644 --- a/themes/hexo/components/NavButtonGroup.js +++ b/themes/hexo/components/NavButtonGroup.js @@ -8,14 +8,14 @@ import Link from 'next/link' * @returns */ const NavButtonGroup = (props) => { - const { categories } = props - if (!categories || categories.length === 0) { + const { categoryOptions } = props + if (!categoryOptions || categoryOptions.length === 0) { return <> } return ( - ); + ) } export default NavButtonGroup