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: fix lint errors

Wenzhao Hu4e970d417a90
diff --git a/packages/ui/src/controllers/ui/ui-desktop.controller.tsx b/packages/ui/src/controllers/ui/ui-desktop.controller.tsx
index 805569c3de..90ce2e3e10 100644
--- a/packages/ui/src/controllers/ui/ui-desktop.controller.tsx
+++ b/packages/ui/src/controllers/ui/ui-desktop.controller.tsx
@@ -23,7 +23,7 @@ import { render as createRoot, unmount } from 'rc-util/lib/React/render';
import type { ComponentType } from 'react';
import React from 'react';
import type { Observable } from 'rxjs';
-import { Subject, delay, filter, take } from 'rxjs';
+import { delay, filter, Subject, take } from 'rxjs';
import { ILayoutService } from '../../services/layout/layout.service';
import { App } from '../../views/App';
@@ -66,13 +66,12 @@ export class DesktopUIController extends Disposable implements IDesktopUIControl
bootstrapWorkbench(options: IWorkbenchOptions): void {
this.disposeWithMe(
bootStrap(this._injector, options, (canvasElement, containerElement) => {
-
if (this._layoutService) {
this.disposeWithMe(this._layoutService.registerRootContainerElement(containerElement));
this.disposeWithMe(this._layoutService.registerCanvasElement(canvasElement as HTMLCanvasElement));
}
- this._lifecycleService.lifecycle$.pipe(filter(lifecycle => lifecycle === LifecycleStages.Ready), delay(300), take(1)).subscribe(() => {
+ this._lifecycleService.lifecycle$.pipe(filter((lifecycle) => lifecycle === LifecycleStages.Ready), delay(300), take(1)).subscribe(() => {
const engine = this._renderManagerService.getFirst()?.engine;
engine?.setContainer(canvasElement);
this._lifecycleService.stage = LifecycleStages.Rendered;