mirror of
https://github.com/d0zingcat/NotionNext.git
synced 2026-05-14 07:26:52 +00:00
修复打包编译错误
This commit is contained in:
@@ -20,10 +20,9 @@ function shuffleSort (arr) {
|
||||
|
||||
const RecommendPosts = ({ currentPost, totalPosts }) => {
|
||||
let filteredPosts = totalPosts
|
||||
const currentTag = currentPost.tags[0]
|
||||
|
||||
// 筛选同标签
|
||||
if (currentPost.tags && currentPost.tags.length) {
|
||||
const currentTag = currentPost.tags[0]
|
||||
filteredPosts = totalPosts.filter(
|
||||
post => post && post.tags && post.tags.includes(currentTag) && post.slug !== currentPost.slug
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user