🎨 Add Relation column to database table view https://github.com/siyuan-note/siyuan/issues/9888

This commit is contained in:
Daniel 2023-12-24 23:34:30 +08:00
parent 8c6d9ae176
commit 8681bf725e
No known key found for this signature in database
GPG key ID: 86211BA83DF03017

View file

@ -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 {