diff --git a/services/static-webserver/client/source/class/osparc/data/model/Node.js b/services/static-webserver/client/source/class/osparc/data/model/Node.js index 44921ae99d8..7e152805fb6 100644 --- a/services/static-webserver/client/source/class/osparc/data/model/Node.js +++ b/services/static-webserver/client/source/class/osparc/data/model/Node.js @@ -712,7 +712,7 @@ qx.Class.define("osparc.data.model.Node", { if (outputs) { let hasOutputs = false; Object.keys(this.getOutputs()).forEach(outputKey => { - if (Object.hasOwn(outputs, outputKey)) { + if (outputKey in outputs) { this.setOutputs({ ...this.getOutputs(), [outputKey]: { @@ -1094,7 +1094,11 @@ qx.Class.define("osparc.data.model.Node", { }; this.fireDataEvent("showInLogger", msgData); - this.getIframeHandler().startPolling(); + if (this.getIframeHandler()) { + this.getIframeHandler().startPolling(); + } else { + console.error(this.getLabel() + " iframe handler not ready"); + } } }, diff --git a/services/static-webserver/client/source/class/osparc/desktop/MainPage.js b/services/static-webserver/client/source/class/osparc/desktop/MainPage.js index 72b9bb2e351..7302f93ee7e 100644 --- a/services/static-webserver/client/source/class/osparc/desktop/MainPage.js +++ b/services/static-webserver/client/source/class/osparc/desktop/MainPage.js @@ -364,23 +364,6 @@ qx.Class.define("osparc.desktop.MainPage", { }); }, - closeStudy: function(studyId) { - if (studyId === undefined) { - if (this.__studyEditor && this.__studyEditor.getStudy()) { - studyId = this.__studyEditor.getStudy().getUuid(); - } else { - return; - } - } - const params = { - url: { - "studyId": studyId - }, - data: osparc.utils.Utils.getClientSessionID() - }; - osparc.data.Resources.fetch("studies", "close", params); - }, - __getStudyEditor: function() { if (this.__studyEditor) { return this.__studyEditor; diff --git a/services/static-webserver/client/source/class/osparc/desktop/StudyEditor.js b/services/static-webserver/client/source/class/osparc/desktop/StudyEditor.js index b00f3d11e07..02f7604615d 100644 --- a/services/static-webserver/client/source/class/osparc/desktop/StudyEditor.js +++ b/services/static-webserver/client/source/class/osparc/desktop/StudyEditor.js @@ -797,7 +797,8 @@ qx.Class.define("osparc.desktop.StudyEditor", { }, data: osparc.utils.Utils.getClientSessionID() }; - osparc.data.Resources.fetch("studies", "close", params); + osparc.data.Resources.fetch("studies", "close", params) + .catch(err => console.error(err)); }, closeEditor: function() { diff --git a/services/static-webserver/client/source/class/osparc/viewer/NodeViewer.js b/services/static-webserver/client/source/class/osparc/viewer/NodeViewer.js index d455d3b9b8f..7c7a9ac8d06 100644 --- a/services/static-webserver/client/source/class/osparc/viewer/NodeViewer.js +++ b/services/static-webserver/client/source/class/osparc/viewer/NodeViewer.js @@ -60,6 +60,8 @@ qx.Class.define("osparc.viewer.NodeViewer", { this.__iFrameChanged(); this.__attachSocketEventHandlers(); + } else { + console.error(node.getLabel() + " iframe handler not ready"); } }) .catch(err => console.error(err));