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(mobile): fix dependency not registered (#6806)
wpxp1234562a010b657262
diff --git a/packages/sheets-numfmt-ui/src/controllers/numfmt-repeat-last-action-controller.ts b/packages/sheets-numfmt-ui/src/controllers/numfmt-repeat-last-action-controller.tsindex 34f60ae20d..a023948e88 100644--- a/packages/sheets-numfmt-ui/src/controllers/numfmt-repeat-last-action-controller.ts+++ b/packages/sheets-numfmt-ui/src/controllers/numfmt-repeat-last-action-controller.ts@@ -16,13 +16,13 @@import type { ISetNumfmtCommandParams } from '@univerjs/sheets-numfmt';import type { RepeatableCommandHandler } from '@univerjs/sheets-ui';-import { Disposable, Inject } from '@univerjs/core';+import { Disposable, Optional } from '@univerjs/core';import { SetNumfmtCommand } from '@univerjs/sheets-numfmt';import { IRepeatLastActionService, RepeatLastActionPermission } from '@univerjs/sheets-ui';export class NumfmtRepeatLastActionController extends Disposable {constructor(- @Inject(IRepeatLastActionService) private readonly _repeatLastActionService: IRepeatLastActionService+ @Optional(IRepeatLastActionService) private readonly _repeatLastActionService?: IRepeatLastActionService) {super();@@ -30,6 +30,10 @@ export class NumfmtRepeatLastActionController extends Disposable {}private _initCommandRecording(): void {+ if (!this._repeatLastActionService) {+ return;+ }+const handler: RepeatableCommandHandler<ISetNumfmtCommandParams> = (selections, params) => {if (!params) return;