From c853fddcffafb447e695e644602f27bd3775bde4 Mon Sep 17 00:00:00 2001 From: Daniel <845765@qq.com> Date: Sat, 20 Jan 2024 21:39:07 +0800 Subject: [PATCH] :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 --- kernel/model/attribute_view.go | 5 ----- 1 file changed, 5 deletions(-) diff --git a/kernel/model/attribute_view.go b/kernel/model/attribute_view.go index 0e79325a3..29b61923a 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 {