🎨 Add Relation column to database table view https://github.com/siyuan-note/siyuan/issues/9888
This commit is contained in:
parent
8c6d9ae176
commit
8681bf725e
1 changed files with 3 additions and 1 deletions
|
@ -2173,7 +2173,9 @@ func UpdateAttributeViewCell(tx *Transaction, avID, keyID, rowID, cellID string,
|
|||
oldBoundBlockID := val.BlockID
|
||||
var oldRelationBlockIDs []string
|
||||
if av.KeyTypeRelation == val.Type {
|
||||
oldRelationBlockIDs = val.Relation.BlockIDs
|
||||
for _, bID := range val.Relation.BlockIDs {
|
||||
oldRelationBlockIDs = append(oldRelationBlockIDs, bID)
|
||||
}
|
||||
}
|
||||
data, err := gulu.JSON.MarshalJSON(valueData)
|
||||
if nil != err {
|
||||
|
|
Loading…
Add table
Reference in a new issue