mirror of
https://github.com/siyuan-note/siyuan.git
synced 2026-05-07 19:29:11 -05:00
This commit is contained in:
@@ -3003,6 +3003,12 @@ func UpdateAttributeViewCell(tx *Transaction, avID, keyID, rowID, cellID string,
|
||||
return
|
||||
}
|
||||
|
||||
if "" == val.ID {
|
||||
// 有时前端会误调用该接口(比如创建完快速切换),这里判断一下,避免误更新刚刚创建的值
|
||||
// https://github.com/siyuan-note/siyuan/issues/11018
|
||||
return
|
||||
}
|
||||
|
||||
if av.KeyTypeNumber == val.Type {
|
||||
if nil != val.Number && !val.Number.IsNotEmpty {
|
||||
val.Number.Content = 0
|
||||
|
||||
Reference in New Issue
Block a user