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.

chore: register empty mutation (#1651)

panghuf4d6bd1259df
diff --git a/packages/sheets/src/controllers/basic-worksheet.controller.ts b/packages/sheets/src/controllers/basic-worksheet.controller.ts
index cdd16cab87..ee53b139c6 100644
--- a/packages/sheets/src/controllers/basic-worksheet.controller.ts
+++ b/packages/sheets/src/controllers/basic-worksheet.controller.ts
@@ -108,6 +108,7 @@ import {
} from '../commands/mutations/set-worksheet-row-height.mutation';
import { SetSelectionsOperation } from '../commands/operations/selection.operation';
import { SetWorksheetActiveOperation } from '../commands/operations/set-worksheet-active.operation';
+import { EmptyMutation } from '../commands/mutations/empty.mutation';
import { MAX_CELL_PER_SHEET_DEFAULT, MAX_CELL_PER_SHEET_KEY } from './config/config';
export interface IStyleTypeValue<T> {
@@ -212,6 +213,7 @@ export class BasicWorksheetController extends Disposable implements IDisposable
SetNumfmtMutation,
SetSelectionsOperation,
RemoveNumfmtMutation,
+ EmptyMutation,
].forEach((command) => this.disposeWithMe(this._commandService.registerCommand(command)));
this._configService.setConfig(MAX_CELL_PER_SHEET_KEY, MAX_CELL_PER_SHEET_DEFAULT);