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