Browse Source

:bug: Database table view sorts abnormally after deleting numeric values Fix https://github.com/siyuan-note/siyuan/issues/10476

Daniel 1 year ago
parent
commit
1635b4b8c2
1 changed files with 1 additions and 0 deletions
  1. 1 0
      kernel/model/attribute_view.go

+ 1 - 0
kernel/model/attribute_view.go

@@ -2536,6 +2536,7 @@ func UpdateAttributeViewCell(tx *Transaction, avID, keyID, rowID, cellID string,
 		if nil != val.Number && !val.Number.IsNotEmpty {
 		if nil != val.Number && !val.Number.IsNotEmpty {
 			// 删除内容为空值
 			// 删除内容为空值
 			val.Number.Content = 0
 			val.Number.Content = 0
+			val.Number.FormattedContent = ""
 		}
 		}
 	}
 	}