🎨 Improve database attribute panel number field formating https://github.com/siyuan-note/siyuan/issues/12491

This commit is contained in:
Daniel 2024-09-16 16:53:21 +08:00
parent 74d3302b09
commit 1e8133e9e5
No known key found for this signature in database
GPG key ID: 86211BA83DF03017
2 changed files with 12 additions and 5 deletions

View file

@ -606,8 +606,16 @@ func setAttributeViewBlockAttr(c *gin.Context) {
rowID := arg["rowID"].(string)
cellID := arg["cellID"].(string)
value := arg["value"].(interface{})
blockAttributeViewKeys := model.UpdateAttributeViewCell(nil, avID, keyID, rowID, cellID, value)
ret.Data = blockAttributeViewKeys
updatedVal, err := model.UpdateAttributeViewCell(nil, avID, keyID, rowID, cellID, value)
if err != nil {
ret.Code = -1
ret.Msg = err.Error()
return
}
ret.Data = map[string]interface{}{
"value": updatedVal,
}
model.ReloadAttrView(avID)
}