Skip to content

An open-source, privacy-first, self-hosted knowledge workspace where humans and AI agents work together 开源、隐私优先、自托管的知识工作空间,让人与智能体在此协作

:art: Auto verify the database name when clicking the block superscript icon https://github.com/siyuan-note/siyuan/issues/10861

Daniel6ad229608260
diff --git a/kernel/model/attribute_view.go b/kernel/model/attribute_view.go
index f31f4c3bbf..fe89c5bd8a 100644
--- a/kernel/model/attribute_view.go
+++ b/kernel/model/attribute_view.go
@@ -286,11 +286,13 @@ func GetBlockAttributeViewKeys(blockID string) (ret []*BlockAttributeViewKeys) {
attrView, err := av.ParseAttributeView(avID)
if nil != err {
logging.LogErrorf("parse attribute view [%s] failed: %s", avID, err)
+ unbindBlockAv(nil, avID, blockID)
return
}
if 1 > len(attrView.Views) {
err = av.ErrViewNotFound
+ unbindBlockAv(nil, avID, blockID)
return
}