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(base-sheets): new Command add workbookunit

dushusir6ec120d36b7a
diff --git a/packages/sheets-plugin-formula/src/Controller/FirstLoader.ts b/packages/sheets-plugin-formula/src/Controller/FirstLoader.ts
index 028d6fa2f7..ee642b746f 100644
--- a/packages/sheets-plugin-formula/src/Controller/FirstLoader.ts
+++ b/packages/sheets-plugin-formula/src/Controller/FirstLoader.ts
@@ -41,7 +41,7 @@ export function firstLoader(formulaController: FormulaController) {
});
}
- const command = new Command(workBook, ...actionList);
+ const command = new Command({WorkBookUnit:workBook}, ...actionList);
commandManager.invoke(command);
});
}