From 620be3572d0a3a5fbfc413c3c279a21078c7446d Mon Sep 17 00:00:00 2001 From: Daniel <845765@qq.com> Date: Fri, 12 Apr 2024 23:26:43 +0800 Subject: [PATCH] :bug: Dynamic loading results in incomplete list display https://github.com/siyuan-note/siyuan/issues/11004 --- kernel/model/file.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/kernel/model/file.go b/kernel/model/file.go index 1083cb7b3..61fe8c76c 100644 --- a/kernel/model/file.go +++ b/kernel/model/file.go @@ -43,7 +43,6 @@ import ( "github.com/siyuan-note/riff" "github.com/siyuan-note/siyuan/kernel/av" "github.com/siyuan-note/siyuan/kernel/cache" - "github.com/siyuan-note/siyuan/kernel/conf" "github.com/siyuan-note/siyuan/kernel/filesys" "github.com/siyuan-note/siyuan/kernel/search" "github.com/siyuan-note/siyuan/kernel/sql" @@ -762,7 +761,7 @@ func GetDoc(startID, endID, id string, index int, query string, queryTypes map[s childCount += treenode.CountBlockNodes(n) } - if childCount > Conf.Editor.DynamicLoadBlocks && blockCount > conf.MinDynamicLoadBlocks { + if childCount > Conf.Editor.DynamicLoadBlocks { scroll = true return ast.WalkStop }