Skip to content

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

:art: The primary key are no longer shown in the attribute panel database https://github.com/siyuan-note/siyuan/issues/10027

Daniel224aec150784
diff --git a/kernel/model/attribute_view.go b/kernel/model/attribute_view.go
index 855d01185a..31f9cbb3d6 100644
--- a/kernel/model/attribute_view.go
+++ b/kernel/model/attribute_view.go
@@ -198,6 +198,11 @@ func GetBlockAttributeViewKeys(blockID string) (ret []*BlockAttributeViewKeys) {
var keyValues []*av.KeyValues
for _, kv := range attrView.KeyValues {
+ if av.KeyTypeBlock == kv.Key.Type {
+ // The primary key are no longer shown in the attribute panel database https://github.com/siyuan-note/siyuan/issues/10027
+ continue
+ }
+
kValues := &av.KeyValues{Key: kv.Key}
for _, v := range kv.Values {
if v.BlockID == blockID {