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: unitId type error in handle editor invisible (#2907)

lumix5e09017670dc
diff --git a/packages/sheets-ui/src/controllers/editor/editing.render-controller.ts b/packages/sheets-ui/src/controllers/editor/editing.render-controller.ts
index d6902cb666..a6bd8aaaf2 100644
--- a/packages/sheets-ui/src/controllers/editor/editing.render-controller.ts
+++ b/packages/sheets-ui/src/controllers/editor/editing.render-controller.ts
@@ -827,7 +827,7 @@ export class EditingRenderController extends Disposable implements IRenderModule
const selections = this._workbookSelections.getCurrentSelections();
if (selections) {
this._commandService.syncExecuteCommand(SetSelectionsOperation.id, {
- unitId: this._context.unit,
+ unitId: this._context.unit.getUnitId(),
subUnitId: worksheetId,
selections,
});