From 224aec150784bf72acff91c6a2b43e34c3469ccc Mon Sep 17 00:00:00 2001 From: Daniel <845765@qq.com> Date: Sat, 30 Dec 2023 21:15:53 +0800 Subject: [PATCH] :art: The primary key are no longer shown in the attribute panel database https://github.com/siyuan-note/siyuan/issues/10027 --- kernel/model/attribute_view.go | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/kernel/model/attribute_view.go b/kernel/model/attribute_view.go index 855d01185..31f9cbb3d 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 {