diff --git a/kernel/model/flashcard.go b/kernel/model/flashcard.go index 3d118b860..bf6e1214a 100644 --- a/kernel/model/flashcard.go +++ b/kernel/model/flashcard.go @@ -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 }