An open-source, privacy-first, self-hosted knowledge workspace where humans and AI agents work together 开源、隐私优先、自托管的知识工作空间,让人与智能体在此协作
TypeScript agentic-aiai-agentknowledge-baselocal-firstmarkdownmcpmindmapnote-takingself-hostedsiyuanworkspace
:art: Duplicate relation values in the Attribute Panel - Database Fix https://github.com/siyuan-note/siyuan/issues/10670
Danielfd1f283b2f96
diff --git a/kernel/model/attribute_view.go b/kernel/model/attribute_view.goindex 42b55b75ba..9108317e4f 100644--- a/kernel/model/attribute_view.go+++ b/kernel/model/attribute_view.go@@ -367,6 +367,7 @@ func GetBlockAttributeViewKeys(blockID string) (ret []*BlockAttributeViewKeys) {for _, blockValue := range destAv.GetBlockKeyValues().Values {blocks[blockValue.BlockID] = blockValue}+ kv.Values[0].Relation.Contents = nil // 先清空 https://github.com/siyuan-note/siyuan/issues/10670for _, bID := range kv.Values[0].Relation.BlockIDs {kv.Values[0].Relation.Contents = append(kv.Values[0].Relation.Contents, blocks[bID])}