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: issue for autofill not working (#4753)

YuHonga8ed28cc15d3
diff --git a/packages/sheets-ui/src/controllers/auto-fill.controller.ts b/packages/sheets-ui/src/controllers/auto-fill.controller.ts
index 46bf57ba53..7411e041f8 100644
--- a/packages/sheets-ui/src/controllers/auto-fill.controller.ts
+++ b/packages/sheets-ui/src/controllers/auto-fill.controller.ts
@@ -184,7 +184,7 @@ export class AutoFillController extends Disposable {
// Each range change requires re-listening.
disposableCollection.dispose();
- const currentRenderer = getCurrentTypeOfRenderer(UniverInstanceType.UNIVER_SLIDE, this._univerInstanceService, this._renderManagerService);
+ const currentRenderer = getCurrentTypeOfRenderer(UniverInstanceType.UNIVER_SHEET, this._univerInstanceService, this._renderManagerService);
if (!currentRenderer) return;
const selectionRenderService = currentRenderer.with(ISheetSelectionRenderService);