Merge branch 'bugfix/rc-2.5.0' of github.com:ONLYOFFICE/DocSpace-client into bugfix/rc-2.5.0
# Conflicts: # packages/shared/components/context-menu-button/ContextMenuButton.tsx
This commit is contained in:
commit
562dbf039d
@ -10,7 +10,7 @@ import { EditorProps, TGoBack } from "@/types";
|
||||
import useInit from "@/hooks/useInit";
|
||||
import useEditorEvents from "@/hooks/useEditorEvents";
|
||||
|
||||
import { FolderType } from "@docspace/shared/enums";
|
||||
import { FolderType, ThemeKeys } from "@docspace/shared/enums";
|
||||
import { getBackUrl } from "@/utils";
|
||||
import { IS_DESKTOP_EDITOR, IZ_ZOOM } from "@/utils/constants";
|
||||
import {
|
||||
@ -142,7 +142,7 @@ const Editor = ({
|
||||
...newConfig.editorConfig.customization,
|
||||
...sdkCustomization,
|
||||
goback: { ...goBack },
|
||||
uiTheme: getEditorTheme(theme),
|
||||
uiTheme: getEditorTheme(theme as ThemeKeys),
|
||||
};
|
||||
|
||||
//if (newConfig.document && newConfig.document.info)
|
||||
|
@ -33,7 +33,7 @@ const useError = ({ error, editorUrl, t }: UseErrorProps) => {
|
||||
} else {
|
||||
const tempElm = document.getElementById("loader");
|
||||
|
||||
const isLoadingDocumentError = error !== null;
|
||||
const isLoadingDocumentError = !!error;
|
||||
const isLoadedDocument = !error && editorUrl;
|
||||
|
||||
if (tempElm && (isLoadingDocumentError || isLoadedDocument))
|
||||
|
Loading…
Reference in New Issue
Block a user