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: empty strings should be treated as having no value when merge (#3963)
ybzky238eef1f5b8b
diff --git a/packages/sheets-ui/src/common/utils.ts b/packages/sheets-ui/src/common/utils.tsindex 5192e190ac..2b1518cac1 100644--- a/packages/sheets-ui/src/common/utils.ts+++ b/packages/sheets-ui/src/common/utils.ts@@ -95,7 +95,7 @@ export function getClearContentMutationParamForRange(worksheet: Worksheet, rangelet leftTopCellValue: Nullable<ICellData> = null;cellMatrix.forValue((row, col, cellData) => {if (cellData && row >= startRow && col >= startColumn) {- if (!leftTopCellValue && worksheet.cellHasValue(cellData)) {+ if (!leftTopCellValue && worksheet.cellHasValue(cellData) && cellData.v !== '') {leftTopCellValue = cellData;}redoMatrix.setValue(row, col, null);