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(debugger): conditionally include useUser() based on unitType (#5296)
白熱973d53670ba8
diff --git a/packages-experimental/debugger/src/views/Fab.tsx b/packages-experimental/debugger/src/views/Fab.tsxindex cb86286167..0b1648f4ab 100644--- a/packages-experimental/debugger/src/views/Fab.tsx+++ b/packages-experimental/debugger/src/views/Fab.tsx@@ -59,7 +59,7 @@ export function Fab() {unitType === UniverInstanceType.UNIVER_SHEET && useUnits(),useSnapshot(),useEditable(),- useUser(),+ unitType === UniverInstanceType.UNIVER_SHEET && useUser(),useDispose(),].filter((item) => item !== null) as IDropdownMenuProps['items'];diff --git a/packages/ui/src/services/theme-switcher/theme-switcher.service.ts b/packages/ui/src/services/theme-switcher/theme-switcher.service.tsindex 47c69e3e41..bfb4e4923b 100644--- a/packages/ui/src/services/theme-switcher/theme-switcher.service.ts+++ b/packages/ui/src/services/theme-switcher/theme-switcher.service.ts@@ -57,9 +57,9 @@ export class ThemeSwitcherService extends Disposable {override dispose() {super.dispose();- const existingStyleElement = document.getElementById(this._styleSheetId);- if (existingStyleElement) {- document.head.removeChild(existingStyleElement);- }+ // const existingStyleElement = document.getElementById(this._styleSheetId);+ // if (existingStyleElement) {+ // document.head.removeChild(existingStyleElement);+ // }}}