mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-05-02 10:11:26 +08:00
🎨 Improve tree block stat https://github.com/siyuan-note/siyuan/issues/13811
This commit is contained in:
parent
4325228196
commit
632dcd08f3
@ -93,7 +93,7 @@ func statTree(tree *parse.Tree) (ret *util.BlockStatResult) {
|
||||
blockCount := 0
|
||||
var databaseBlockNodes []*ast.Node
|
||||
ast.Walk(tree.Root, func(n *ast.Node, entering bool) ast.WalkStatus {
|
||||
if !entering {
|
||||
if !entering || tree.Root == n {
|
||||
return ast.WalkContinue
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user