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(image): switch tab error (#2926)
Univer2cee8d642bd1
diff --git a/packages/drawing-ui/src/controllers/image-update.controller.ts b/packages/drawing-ui/src/controllers/image-update.controller.tsindex 99b6a6ca4d..beeb8e3416 100644--- a/packages/drawing-ui/src/controllers/image-update.controller.ts+++ b/packages/drawing-ui/src/controllers/image-update.controller.ts@@ -39,8 +39,6 @@ const IMAGE_VIEWER_DROPDOWN_PADDING = 50;@OnLifecycle(LifecycleStages.Rendered, ImageUpdateController)export class ImageUpdateController extends Disposable {- private _imageInsertCache: Set<string> = new Set();-constructor(@ICommandService private readonly _commandService: ICommandService,@IRenderManagerService private readonly _renderManagerService: IRenderManagerService,@@ -57,8 +55,6 @@ export class ImageUpdateController extends Disposable {override dispose(): void {super.dispose();-- this._imageInsertCache.clear();}private _initialize() {@@ -213,14 +209,6 @@ export class ImageUpdateController extends Disposable {return;}- const drawingShapeKey = getDrawingShapeKeyByDrawingSearch({ unitId, subUnitId, drawingId });-- if (this._imageInsertCache.has(drawingShapeKey)) {- return;- }-- this._imageInsertCache.add(drawingShapeKey);-const imageParam = this._drawingManagerService.getDrawingByParam(param) as IImageData;if (imageParam == null) {return;