Skip to content

Commit

Permalink
🐛 数据库数字填0无效
Browse files Browse the repository at this point in the history
  • Loading branch information
Vanessa219 committed Oct 12, 2023
1 parent 1b595d0 commit a4bcae8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/src/protyle/render/av/cell.ts
Original file line number Diff line number Diff line change
Expand Up @@ -435,9 +435,9 @@ const updateCellValue = (protyle: IProtyle, type: TAVCol, cellElements: HTMLElem
};
if (type === "number") {
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.isNotEmpty = !!inputValue.content;
inputValue.isNotEmpty = typeof inputValue.content === "number" && !isNaN(inputValue.content);
}
if (objEquals(inputValue, oldValue)) {
return;
Expand Down

0 comments on commit a4bcae8

Please sign in to comment.