We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a799aef commit 03b138cCopy full SHA for 03b138c
pages/[...slug].js
@@ -31,7 +31,7 @@ const Slug = props => {
31
setLock(true)
32
} else {
33
if (!lock && post?.blockMap?.block) {
34
- post.content = Object.keys(post.blockMap.block).filter(key => post.blockMap.block[key]?.value.parent_id === post.id)
+ post.content = Object.keys(post.blockMap.block).filter(key => post.blockMap.block[key]?.value?.parent_id === post.id)
35
post.toc = getPageTableOfContents(post, post.blockMap)
36
}
37
0 commit comments