Merge branch 'feature/static-versioned' of https://github.com/ONLYOFFICE/DocSpace into feature/static-versioned

This commit is contained in:
Timofey Boyko 2023-01-20 10:14:58 +03:00
commit 10611fc98d
3 changed files with 5 additions and 9 deletions

View File

@ -4,11 +4,7 @@
"main": "index.js",
"license": "MIT",
"scripts": {
"build": "echo 'skip it'",
"clean": "echo 'skip it'",
"deploy": "echo 'skip it'",
"start": "echo 'skip it'",
"start-prod": "echo 'skip it'"
"start": "node src/index.js"
},
"dependencies": {
"crypto": "^1.0.1",

View File

@ -28,12 +28,12 @@ const App = ({ initialLanguage, initialI18nStoreASC, setTheme, ...rest }) => {
const [isInitialized, isErrorLoading] = useMfScripts();
useSSR(initialI18nStoreASC, initialLanguage);
console.log(rest);
//console.log(rest);
useEffect(() => {
let icon = "";
switch (rest.config.documentType) {
switch (rest?.config?.documentType) {
case "word":
icon = TextIcoUrl;
break;
@ -54,7 +54,7 @@ const App = ({ initialLanguage, initialI18nStoreASC, setTheme, ...rest }) => {
}
console.log(icon);
}, [rest.config.documentType]);
}, [rest?.config?.documentType]);
useEffect(() => {
const tempElm = document.getElementById("loader");

View File

@ -543,7 +543,7 @@ function Editor({
}
if (successAuth) {
const documentType = config.documentType;
const documentType = config?.documentType;
const fileExt =
documentType === "word"