Client: SDK: Fixed open editor error if file id not set
This commit is contained in:
parent
69203c2c1e
commit
139c4e6c5f
@ -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 (
|
||||
|
@ -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 (
|
||||
|
Loading…
Reference in New Issue
Block a user