Merge branch 'feature/static-versioned' of https://github.com/ONLYOFFICE/DocSpace into feature/static-versioned
This commit is contained in:
commit
10611fc98d
@ -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",
|
||||
|
@ -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");
|
||||
|
@ -543,7 +543,7 @@ function Editor({
|
||||
}
|
||||
|
||||
if (successAuth) {
|
||||
const documentType = config.documentType;
|
||||
const documentType = config?.documentType;
|
||||
|
||||
const fileExt =
|
||||
documentType === "word"
|
||||
|
Loading…
Reference in New Issue
Block a user