Build your own AI office with Univer Office SDK. Bring editing, calculation, collaboration, and file processing into your product for people and AI agents. Built on an extensible open-source core.
TypeScript boardcollaborationdocdocxexceloffce365officepdfpptpptxpresentationsdksheetslidesspreadsheetuniverwordwordprocessorworkspacexlsx
fix(value): fix set range value change the null value to string null (#5332)
VicKun19978f8fc079
diff --git a/packages/sheets/src/basics/cell-value.ts b/packages/sheets/src/basics/cell-value.tsindex cf4fade638..f8436d1ff5 100644--- a/packages/sheets/src/basics/cell-value.ts+++ b/packages/sheets/src/basics/cell-value.ts@@ -24,6 +24,9 @@ import { CellValueType, isSafeNumeric } from '@univerjs/core';* @returns*/export function getCellValue(type: Nullable<CellValueType>, cell: ICellData) {+ if (cell.v === undefined || cell.v === null) {+ return cell.v;+ }if (type === CellValueType.NUMBER) {return Number(cell.v);}