Skip to content

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.

fix(xf): add to set range value (#6128)

Univer944a6f4109f6
diff --git a/packages/sheets/src/commands/mutations/set-range-values.mutation.ts b/packages/sheets/src/commands/mutations/set-range-values.mutation.ts
index 25a4f9b67c..3439bbef2a 100644
--- a/packages/sheets/src/commands/mutations/set-range-values.mutation.ts
+++ b/packages/sheets/src/commands/mutations/set-range-values.mutation.ts
@@ -141,7 +141,7 @@ export const SetRangeValuesMutation: IMutation<ISetRangeValuesMutationParams, bo
},
};
-const overwriteCellPropertiesSet = new Set(['f', 'p', 'si', 'custom', 'ref']);
+const overwriteCellPropertiesSet = new Set(['f', 'p', 'si', 'custom', 'ref', 'xf']);
function mergeCellData(newValue: ICellData, oldValue: ICellData, styles: Styles) {
const type = getCellType(styles, newValue, oldValue);
Object.keys(newValue).forEach((key) => {