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(code): eslint fix

jerry9cf2b5e47098
diff --git a/packages/core/src/Sheets/Apply/HideSheet.ts b/packages/core/src/Sheets/Apply/HideSheet.ts
index b8d7ceac0f..5f85addc73 100644
--- a/packages/core/src/Sheets/Apply/HideSheet.ts
+++ b/packages/core/src/Sheets/Apply/HideSheet.ts
@@ -31,7 +31,7 @@ export function SetWorkSheetHideServiceApply(
unit: CommandUnit,
data: ISetWorkSheetHideActionData
) {
- const worksheet = unit.WorkBookUnit?.getSheetBySheetId(data.sheetId);
+ const worksheet = unit.WorkBookUnit!.getSheetBySheetId(data.sheetId);
// get config
const config = worksheet?.getConfig();