mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-12-21 00:50:13 +01:00
🎨 Add Relation column to database table view https://github.com/siyuan-note/siyuan/issues/9888
This commit is contained in:
parent
078c3700b3
commit
eca04497d7
1 changed files with 4 additions and 2 deletions
|
|
@ -2173,10 +2173,12 @@ func UpdateAttributeViewCell(tx *Transaction, avID, keyID, rowID, cellID string,
|
||||||
oldBoundBlockID := val.BlockID
|
oldBoundBlockID := val.BlockID
|
||||||
var oldRelationBlockIDs []string
|
var oldRelationBlockIDs []string
|
||||||
if av.KeyTypeRelation == val.Type {
|
if av.KeyTypeRelation == val.Type {
|
||||||
|
if nil != val.Relation {
|
||||||
for _, bID := range val.Relation.BlockIDs {
|
for _, bID := range val.Relation.BlockIDs {
|
||||||
oldRelationBlockIDs = append(oldRelationBlockIDs, bID)
|
oldRelationBlockIDs = append(oldRelationBlockIDs, bID)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
data, err := gulu.JSON.MarshalJSON(valueData)
|
data, err := gulu.JSON.MarshalJSON(valueData)
|
||||||
if nil != err {
|
if nil != err {
|
||||||
return
|
return
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue