fix/build

This commit is contained in:
tangly1024
2023-07-30 14:08:06 +08:00
parent 6cfc8ae444
commit f1e68eb2b4

View File

@@ -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)
}
}