Skip to content

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

:art: Revert https://github.com/siyuan-note/siyuan/issues/10027 for Attribute Panel - Database supports adding key and sorting key https://github.com/siyuan-note/siyuan/issues/10142

Danielc853fddcffaf
diff --git a/kernel/model/attribute_view.go b/kernel/model/attribute_view.go
index 0e79325a39..29b61923a3 100644
--- a/kernel/model/attribute_view.go
+++ b/kernel/model/attribute_view.go
@@ -219,11 +219,6 @@ 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 {