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: bugs in cut-paste undo scenario (#4095)

YuHongafc72cf5dc0f
diff --git a/packages/sheets-ui/src/controllers/clipboard/utils.ts b/packages/sheets-ui/src/controllers/clipboard/utils.ts
index 8b15cce67a..5a46292d0c 100644
--- a/packages/sheets-ui/src/controllers/clipboard/utils.ts
+++ b/packages/sheets-ui/src/controllers/clipboard/utils.ts
@@ -268,7 +268,7 @@ export function getMoveRangeMutations(
id: SetSelectionsOperation.id,
params: {
unitId,
- sheetId: fromSubUnitId,
+ subUnitId: fromSubUnitId,
selections: [{ range: fromRange }],
},