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

This commit is contained in:
Daniel 2023-12-24 09:55:12 +08:00
parent 356b6748c9
commit 9d72566876
No known key found for this signature in database
GPG key ID: 86211BA83DF03017
2 changed files with 4 additions and 5 deletions

View file

@ -865,7 +865,7 @@ func updateAttributeViewColRelation(operation *Operation) (err error) {
for _, v := range destAv.Views {
switch v.LayoutType {
case av.LayoutTypeTable:
v.Table.Columns = append(v.Table.Columns, &av.ViewTableColumn{ID: operation.KeyID})
v.Table.Columns = append(v.Table.Columns, &av.ViewTableColumn{ID: operation.BackRelationKeyID})
}
}
}