🐛 Add to Database shows databases that are not in the document https://github.com/siyuan-note/siyuan/issues/15847

Signed-off-by: Daniel <845765@qq.com>
This commit is contained in:
Daniel 2025-09-14 21:25:06 +08:00
parent 1b077c164c
commit 0084a6427b
No known key found for this signature in database
GPG key ID: 86211BA83DF03017

View file

@ -1398,7 +1398,8 @@ func SearchAttributeView(keyword string, excludeAvIDs []string) (ret []*AvSearch
}
node = treenode.GetNodeInTree(tree, bID)
if nil == node || "" == node.AttributeViewID {
if nil == node || "" == node.AttributeViewID || ast.NodeAttributeView != node.Type {
node = nil
continue
}