From f0bcd7f51f81f819d451e58bde56dcf841886b5d Mon Sep 17 00:00:00 2001 From: Liang Ding Date: Thu, 23 Feb 2023 18:45:00 +0800 Subject: [PATCH] =?UTF-8?q?:art:=20=E6=94=AF=E6=8C=81=E6=96=87=E6=A1=A3?= =?UTF-8?q?=E5=9D=97=E5=88=B6=E4=BD=9C=E9=97=AA=E5=8D=A1=20Fix=20https://g?= =?UTF-8?q?ithub.com/siyuan-note/siyuan/issues/7460?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- kernel/model/flashcard.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 }