|
@@ -42,6 +42,7 @@ 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"
|
|
@@ -665,7 +666,7 @@ func GetDoc(startID, endID, id string, index int, query string, queryTypes map[s
|
|
|
childCount += treenode.CountBlockNodes(n)
|
|
|
}
|
|
|
|
|
|
- if childCount > Conf.Editor.DynamicLoadBlocks {
|
|
|
+ if childCount > Conf.Editor.DynamicLoadBlocks && blockCount > conf.MinDynamicLoadBlocks {
|
|
|
scroll = true
|
|
|
return ast.WalkStop
|
|
|
}
|