This commit is contained in:
parent
1e37640749
commit
a3444452aa
1 changed files with 2 additions and 2 deletions
|
@ -124,9 +124,9 @@ func SearchRefBlock(id, rootID, keyword string, beforeLen int) (ret []*Block, ne
|
|||
// 查询为空时默认的块引排序规则按最近使用优先 https://github.com/siyuan-note/siyuan/issues/3218
|
||||
refs := sql.QueryRefsRecent()
|
||||
for _, ref := range refs {
|
||||
tree := cachedTrees[ref.RootID]
|
||||
tree := cachedTrees[ref.DefBlockRootID]
|
||||
if nil == tree {
|
||||
tree, _ = loadTreeByBlockID(ref.RootID)
|
||||
tree, _ = loadTreeByBlockID(ref.DefBlockRootID)
|
||||
}
|
||||
if nil == tree {
|
||||
continue
|
||||
|
|
Loading…
Add table
Reference in a new issue