File tree Expand file tree Collapse file tree 3 files changed +7
-11
lines changed
services/static-webserver/client/source/class/osparc Expand file tree Collapse file tree 3 files changed +7
-11
lines changed Original file line number Diff line number Diff 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 = "" ;
Original file line number Diff line number Diff 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
Original file line number Diff line number Diff 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 ) ;
You can’t perform that action at this time.
0 commit comments