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

This commit is contained in:
Daniel
2024-01-01 14:49:00 +08:00
parent 246f08d7c2
commit d18eb01d15

View File

@@ -277,6 +277,9 @@ func SaveAttributeView(av *AttributeView) (err error) {
for _, v := range kv.Values {
if "" == kv.Key.ID {
kv.Key.ID = ast.NewNodeID()
for _, v := range kv.Values {
v.KeyID = kv.Key.ID
}
}
if "" == v.KeyID {
v.KeyID = kv.Key.ID