mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-12-18 15:40:12 +01:00
🎨 The primary key are no longer shown in the attribute panel database https://github.com/siyuan-note/siyuan/issues/10027
This commit is contained in:
parent
755e9e0af3
commit
224aec1507
1 changed files with 5 additions and 0 deletions
|
|
@ -198,6 +198,11 @@ func GetBlockAttributeViewKeys(blockID string) (ret []*BlockAttributeViewKeys) {
|
||||||
|
|
||||||
var keyValues []*av.KeyValues
|
var keyValues []*av.KeyValues
|
||||||
for _, kv := range attrView.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}
|
kValues := &av.KeyValues{Key: kv.Key}
|
||||||
for _, v := range kv.Values {
|
for _, v := range kv.Values {
|
||||||
if v.BlockID == blockID {
|
if v.BlockID == blockID {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue