Skip to content

Commit 03b138c

Browse files
committed
fix/database category parent_id
1 parent a799aef commit 03b138c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pages/[...slug].js

+1-1
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ const Slug = props => {
3131
setLock(true)
3232
} else {
3333
if (!lock && post?.blockMap?.block) {
34-
post.content = Object.keys(post.blockMap.block).filter(key => post.blockMap.block[key]?.value.parent_id === post.id)
34+
post.content = Object.keys(post.blockMap.block).filter(key => post.blockMap.block[key]?.value?.parent_id === post.id)
3535
post.toc = getPageTableOfContents(post, post.blockMap)
3636
}
3737

0 commit comments

Comments
 (0)