mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-02-13 21:05:19 +00:00
fix(core): db property number cell should be cast to number (#8937)
fix BS-1962
This commit is contained in:
@@ -14,7 +14,11 @@ export const NumberCell = ({
|
||||
<NumberValue
|
||||
value={value}
|
||||
onChange={v => {
|
||||
dataSource.cellValueChange(rowId, cell.property.id, v);
|
||||
const value = Number(v);
|
||||
if (isNaN(value)) {
|
||||
return;
|
||||
}
|
||||
dataSource.cellValueChange(rowId, cell.property.id, value);
|
||||
onChange?.(v);
|
||||
}}
|
||||
/>
|
||||
|
||||
Reference in New Issue
Block a user