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

This commit is contained in:
Daniel 2023-12-31 09:51:44 +08:00
parent 00e99b23b7
commit 89158e77e2
No known key found for this signature in database
GPG key ID: 86211BA83DF03017

View file

@ -252,7 +252,7 @@ func GetBlockAttributeViewKeys(blockID string) (ret []*BlockAttributeViewKeys) {
destVal.Number.FormatNumber()
}
kv.Values[0].Rollup.Contents = append(kv.Values[0].Rollup.Contents, destAv.GetValue(kv.Key.Rollup.KeyID, bID).String())
kv.Values[0].Rollup.Contents = append(kv.Values[0].Rollup.Contents, destVal.String())
}
kv.Values[0].Rollup.RenderContents(kv.Key.Rollup.Calc)