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(sheet): fix range theme cmd param error (#4542)

VicKunb55877bf4afc
diff --git a/packages/sheets/src/commands/commands/register-range-theme.command.ts b/packages/sheets/src/commands/commands/register-range-theme.command.ts
index 054991e487..b65fa80c15 100644
--- a/packages/sheets/src/commands/commands/register-range-theme.command.ts
+++ b/packages/sheets/src/commands/commands/register-range-theme.command.ts
@@ -50,7 +50,7 @@ export const RegisterWorksheetRangeThemeStyleCommand: ICommand<IRegisterWorkshee
unitId,
themeName: rangeThemeStyle.getName(),
};
- const result = commandService.syncExecuteCommand(RegisterWorksheetRangeThemeStyleMutation.id, params);
+ const result = commandService.syncExecuteCommand(RegisterWorksheetRangeThemeStyleMutation.id, redoParam);
if (result) {
undoRedoService.pushUndoRedo({
unitID: unitId,