Skip to content

Commit 573045b

Browse files
committed
cleanup
1 parent ea3a1cc commit 573045b

File tree

3 files changed

+7
-11
lines changed

3 files changed

+7
-11
lines changed

services/static-webserver/client/source/class/osparc/data/model/Workbench.js

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -370,11 +370,11 @@ qx.Class.define("osparc.data.model.Workbench", {
370370

371371
this.fireEvent("restartAutoSaveTimer");
372372
const node = this.__createNode(key, version, nodeId);
373-
node.fetchMetadataAndPopulate();
374-
// OM here: then maybe
375-
this.__giveUniqueNameToNode(node, node.getLabel());
376-
node.checkState();
377-
373+
node.fetchMetadataAndPopulate()
374+
.then(() => {
375+
this.__giveUniqueNameToNode(node, node.getLabel());
376+
node.checkState();
377+
});
378378
return node;
379379
} catch (err) {
380380
let errorMsg = "";

services/static-webserver/client/source/class/osparc/desktop/StudyEditor.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -362,7 +362,7 @@ qx.Class.define("osparc.desktop.StudyEditor", {
362362

363363
// Reset the timer if it's already running
364364
if (this.__applyProjectDocumentTimer) {
365-
console.log("ProjectDocument Discarded: Resetting applyProjectDocument timer");
365+
console.debug("ProjectDocument Discarded: Resetting applyProjectDocument timer");
366366
clearTimeout(this.__applyProjectDocumentTimer);
367367
}
368368

@@ -387,7 +387,7 @@ qx.Class.define("osparc.desktop.StudyEditor", {
387387
},
388388

389389
__applyProjectDocument: function(data) {
390-
console.log("ProjectDocument applying:", data);
390+
console.debug("ProjectDocument applying:", data);
391391
this.__lastSyncedProjectVersion = data["version"];
392392
const updatedProjectDocument = data["document"];
393393

services/static-webserver/client/source/class/osparc/store/Services.js

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -37,10 +37,6 @@ qx.Class.define("osparc.store.Services", {
3737

3838
osparc.data.Resources.getInstance().getAllPages("services")
3939
.then(servicesArray => {
40-
// OM testing purposes
41-
const unknownMetadata = this.getUnknownServiceMetadata();
42-
servicesArray.push(unknownMetadata); // add a dummy service to test the NodeUnknown class
43-
4440
const servicesObj = osparc.service.Utils.convertArrayToObject(servicesArray);
4541
this.__addHits(servicesObj);
4642
this.__addTSRInfos(servicesObj);

0 commit comments

Comments
 (0)