This commit is contained in:
Liang Ding 2023-02-19 09:40:01 +08:00
parent 3dc2d80821
commit 8ab870b9c5
No known key found for this signature in database
GPG Key ID: 136F30F901A2231D

View File

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