From 2e4f0484bce792053984bdc6717b1a2960fdf3ca Mon Sep 17 00:00:00 2001 From: "tangly1024.com" Date: Wed, 8 Feb 2023 18:13:12 +0800 Subject: [PATCH] hexo-home-button --- themes/hexo/components/NavButtonGroup.js | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) 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