mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-02-28 05:32:52 +00:00
🎨 Add Relation column to database table view https://github.com/siyuan-note/siyuan/issues/9888
This commit is contained in:
@@ -2173,8 +2173,10 @@ func UpdateAttributeViewCell(tx *Transaction, avID, keyID, rowID, cellID string,
|
||||
oldBoundBlockID := val.BlockID
|
||||
var oldRelationBlockIDs []string
|
||||
if av.KeyTypeRelation == val.Type {
|
||||
for _, bID := range val.Relation.BlockIDs {
|
||||
oldRelationBlockIDs = append(oldRelationBlockIDs, bID)
|
||||
if nil != val.Relation {
|
||||
for _, bID := range val.Relation.BlockIDs {
|
||||
oldRelationBlockIDs = append(oldRelationBlockIDs, bID)
|
||||
}
|
||||
}
|
||||
}
|
||||
data, err := gulu.JSON.MarshalJSON(valueData)
|
||||
|
||||
Reference in New Issue
Block a user