mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-12-23 10:00:13 +01:00
🎨 Duplicate relation values in the Attribute Panel - Database Fix https://github.com/siyuan-note/siyuan/issues/10670
This commit is contained in:
parent
34e46eee0b
commit
fd1f283b2f
1 changed files with 1 additions and 0 deletions
|
|
@ -367,6 +367,7 @@ func GetBlockAttributeViewKeys(blockID string) (ret []*BlockAttributeViewKeys) {
|
|||
for _, blockValue := range destAv.GetBlockKeyValues().Values {
|
||||
blocks[blockValue.BlockID] = blockValue
|
||||
}
|
||||
kv.Values[0].Relation.Contents = nil // 先清空 https://github.com/siyuan-note/siyuan/issues/10670
|
||||
for _, bID := range kv.Values[0].Relation.BlockIDs {
|
||||
kv.Values[0].Relation.Contents = append(kv.Values[0].Relation.Contents, blocks[bID])
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue