There can be more than Notion and Miro. AFFiNE(pronounced [ə‘fain]) is a next-gen knowledge base that brings planning, sorting and creating all together. Privacy first, open-source, customizable and ready to use.
TypeScript appcrdteditorelectronknowledge-basemarkdownmironotesnotionnotion-alternativerustrust-langrust-languagetabletableviewwhiteboardwikiworkspace
fix(core): db property number cell should be cast to number (#8937)
pengx17f4f005bffb26
diff --git a/packages/frontend/core/src/modules/doc-info/views/database-properties/cells/number.tsx b/packages/frontend/core/src/modules/doc-info/views/database-properties/cells/number.tsxindex c183e87f44..8b88e60c4d 100644--- a/packages/frontend/core/src/modules/doc-info/views/database-properties/cells/number.tsx+++ b/packages/frontend/core/src/modules/doc-info/views/database-properties/cells/number.tsx@@ -14,7 +14,11 @@ export const NumberCell = ({<NumberValuevalue={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);}}/>