mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-12-19 16:10:12 +01:00
🐛 数据库数字填0无效
This commit is contained in:
parent
1b595d014a
commit
a4bcae87ee
1 changed files with 2 additions and 2 deletions
|
|
@ -435,9 +435,9 @@ const updateCellValue = (protyle: IProtyle, type: TAVCol, cellElements: HTMLElem
|
||||||
};
|
};
|
||||||
if (type === "number") {
|
if (type === "number") {
|
||||||
oldValue.content = parseFloat(oldValue.content as string);
|
oldValue.content = parseFloat(oldValue.content as string);
|
||||||
oldValue.isNotEmpty = !!oldValue.content;
|
oldValue.isNotEmpty = typeof oldValue.content === "number" && !isNaN(oldValue.content);
|
||||||
inputValue.content = parseFloat(inputValue.content as string);
|
inputValue.content = parseFloat(inputValue.content as string);
|
||||||
inputValue.isNotEmpty = !!inputValue.content;
|
inputValue.isNotEmpty = typeof inputValue.content === "number" && !isNaN(inputValue.content);
|
||||||
}
|
}
|
||||||
if (objEquals(inputValue, oldValue)) {
|
if (objEquals(inputValue, oldValue)) {
|
||||||
return;
|
return;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue