fix/database category parent_id

This commit is contained in:
tangly1024.com
2023-05-06 14:10:28 +08:00
parent a799aef233
commit 03b138cfa4

View File

@@ -31,7 +31,7 @@ const Slug = props => {
setLock(true)
} else {
if (!lock && post?.blockMap?.block) {
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)
post.toc = getPageTableOfContents(post, post.blockMap)
}