🎨 Supports multiple views for the database https://github.com/siyuan-note/siyuan/issues/9751

This commit is contained in:
Daniel 2023-12-01 11:47:20 +08:00
parent 134d893167
commit 99c9ab12f1
No known key found for this signature in database
GPG key ID: 86211BA83DF03017

View file

@ -1486,7 +1486,7 @@ func updateAttributeViewColumn(operation *Operation) (err error) {
case av.KeyTypeBlock, av.KeyTypeText, av.KeyTypeNumber, av.KeyTypeDate, av.KeyTypeSelect, av.KeyTypeMSelect, av.KeyTypeURL, av.KeyTypeEmail, av.KeyTypePhone, av.KeyTypeMAsset, av.KeyTypeTemplate, av.KeyTypeCreated, av.KeyTypeUpdated, av.KeyTypeCheckbox:
for _, keyValues := range attrView.KeyValues {
if keyValues.Key.ID == operation.ID {
keyValues.Key.Name = operation.Name
keyValues.Key.Name = strings.TrimSpace(operation.Name)
keyValues.Key.Type = colType
break
}