mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-12-21 09:00:12 +01:00
🎨 Improve database attribute panel number field formating https://github.com/siyuan-note/siyuan/issues/12491
This commit is contained in:
parent
74d3302b09
commit
1e8133e9e5
2 changed files with 12 additions and 5 deletions
|
|
@ -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)
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue