🎨 Support adding the current document in the database https://github.com/siyuan-note/siyuan/issues/10912

This commit is contained in:
Daniel 2024-04-07 09:43:29 +08:00
parent d59e5e2a73
commit 2bbd1a89d0
No known key found for this signature in database
GPG key ID: 86211BA83DF03017

View file

@ -369,7 +369,7 @@ func SearchRefBlock(id, rootID, keyword string, beforeLen int, isSquareBrackets
b.RefText = getBlockRefText(b.ID, tree)
hitFirstChildID := false
if b.IsContainerBlock() {
if b.IsContainerBlock() && "NodeDocument" != b.Type {
// `((` 引用候选中排除当前块的父块 https://github.com/siyuan-note/siyuan/issues/4538
tree := cachedTrees[b.RootID]
if nil == tree {