From f1e68eb2b496d557e22a81262be3bfc6f7d24f37 Mon Sep 17 00:00:00 2001 From: tangly1024 Date: Sun, 30 Jul 2023 14:08:06 +0800 Subject: [PATCH] fix/build --- themes/heo/components/Hero.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/themes/heo/components/Hero.js b/themes/heo/components/Hero.js index 15614734..4d8da6ca 100644 --- a/themes/heo/components/Hero.js +++ b/themes/heo/components/Hero.js @@ -171,7 +171,7 @@ function TopGroup(props) { break } // 查找标签 - if (post.tags.indexOf(CONFIG.HERO_RECOMMEND_POST_TAG) >= 0) { + if (post?.tags?.indexOf(CONFIG.HERO_RECOMMEND_POST_TAG) >= 0) { topPosts.push(post) } }