diff --git a/public/scripts/api.js b/public/scripts/api.js index 51e6aad863..37281dabd5 100644 --- a/public/scripts/api.js +++ b/public/scripts/api.js @@ -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 ( diff --git a/public/scripts/sdk/1.0.0/api.js b/public/scripts/sdk/1.0.0/api.js index 9bfaa38f76..3820c248e8 100644 --- a/public/scripts/sdk/1.0.0/api.js +++ b/public/scripts/sdk/1.0.0/api.js @@ -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 (