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(sheets-drawing-ui): sheet-drawing error receive data from doc (#3337)
zhangwb8e6e42c1617
diff --git a/packages/sheets-drawing-ui/src/services/canvas-float-dom-manager.service.ts b/packages/sheets-drawing-ui/src/services/canvas-float-dom-manager.service.tsindex 7564872c43..09482fb8f4 100644--- a/packages/sheets-drawing-ui/src/services/canvas-float-dom-manager.service.ts+++ b/packages/sheets-drawing-ui/src/services/canvas-float-dom-manager.service.ts@@ -255,8 +255,13 @@ export class SheetCanvasFloatDomManagerService extends Disposable {const { unitId, subUnitId, drawingId } = param;const target = getSheetCommandTarget(this._univerInstanceService, { unitId, subUnitId });const floatDomParam = this._drawingManagerService.getDrawingByParam(param) as IFloatDomData;++ if (!floatDomParam || !target) {+ return;+ }+const skeleton = this._renderManagerService.getRenderById(unitId)?.with(SheetSkeletonManagerService).getWorksheetSkeleton(subUnitId);- if (floatDomParam == null || target == null || skeleton == null) {+ if (!skeleton) {return;}