Client: SDK: Fixed open editor error if file id not set

This commit is contained in:
Ilya Oleshko 2024-05-14 16:25:14 +03:00
parent 69203c2c1e
commit 139c4e6c5f
2 changed files with 16 additions and 0 deletions

View File

@ -401,6 +401,10 @@
let goBack = config.editorGoBack;
config.editorCustomization.uiTheme = config.theme;
if (!config.id || config.id === "undefined" || config.id === "null") {
config.id = -1; //editor default wrong file id error
}
const customization = JSON.stringify(config.editorCustomization);
if (
@ -423,6 +427,10 @@
let goBack = config.editorGoBack;
config.editorCustomization.uiTheme = config.theme;
if (!config.id || config.id === "undefined" || config.id === "null") {
config.id = -1; //editor default wrong file id error
}
const customization = JSON.stringify(config.editorCustomization);
if (

View File

@ -470,6 +470,10 @@
let goBack = config.editorGoBack;
config.editorCustomization.uiTheme = config.theme;
if (!config.id || config.id === "undefined" || config.id === "null") {
config.id = -1; //editor default wrong file id error
}
const customization = JSON.stringify(config.editorCustomization);
if (
@ -492,6 +496,10 @@
let goBack = config.editorGoBack;
config.editorCustomization.uiTheme = config.theme;
if (!config.id || config.id === "undefined" || config.id === "null") {
config.id = -1; //editor default wrong file id error
}
const customization = JSON.stringify(config.editorCustomization);
if (