This commit is contained in:
Liang Ding 2023-02-23 18:45:00 +08:00
parent d87d251b01
commit f0bcd7f51f
No known key found for this signature in database
GPG key ID: 136F30F901A2231D

View file

@ -249,7 +249,7 @@ func getTreeSubTreeChildBlocks(rootID string) (treeBlockIDs map[string]bool) {
for _, t := range trees {
ast.Walk(t.Root, func(n *ast.Node, entering bool) ast.WalkStatus {
if !entering || !n.IsBlock() || ast.NodeDocument == n.Type {
if !entering || !n.IsBlock() {
return ast.WalkContinue
}