mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-05-15 08:30:42 +08:00
🐛 数据库数字填0无效
This commit is contained in:
parent
1b595d014a
commit
a4bcae87ee
@ -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…
Reference in New Issue
Block a user