Forráskód Böngészése

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

Daniel 1 éve
szülő
commit
224aec1507
1 módosított fájl, 5 hozzáadás és 0 törlés
  1. 5 0
      kernel/model/attribute_view.go

+ 5 - 0
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 {