@@ -116,27 +116,24 @@ qx.Class.define("osparc.dashboard.NewPlusMenu", {
116116    } , 
117117
118118    __addNewStudyItems : async  function ( )  { 
119-       await  Promise . all ( [ 
120-         osparc . store . Products . getInstance ( ) . getPlusButtonUiConfig ( ) , 
121-         osparc . data . Resources . get ( "templates" ) 
122-       ] ) . then ( values  =>  { 
123-         const  newStudiesData  =  values [ 0 ] ; 
124-         const  templates  =  values [ 1 ] ; 
125-         if  ( newStudiesData [ "categories" ] )  { 
126-           this . __addCategories ( newStudiesData [ "categories" ] ) ; 
127-         } 
128-         newStudiesData [ "resources" ] . forEach ( newStudyData  =>  { 
129-           if  ( newStudyData [ "showDisabled" ] )  { 
130-             this . __addDisabledButton ( newStudyData ) ; 
131-           }  else  if  ( newStudyData [ "resourceType" ]  ===  "study" )  { 
132-             this . __addEmptyStudyButton ( newStudyData ) ; 
133-           }  else  if  ( newStudyData [ "resourceType" ]  ===  "template" )  { 
134-             this . __addFromTemplateButton ( newStudyData ,  templates ) ; 
135-           }  else  if  ( newStudyData [ "resourceType" ]  ===  "service" )  { 
136-             this . __addFromServiceButton ( newStudyData ) ; 
119+       await  osparc . data . Resources . get ( "templates" ) 
120+         . then ( templates  =>  { 
121+           const  newStudiesData  =  osparc . store . Products . getInstance ( ) . getPlusButtonUiConfig ( ) ; 
122+           if  ( newStudiesData [ "categories" ] )  { 
123+             this . __addCategories ( newStudiesData [ "categories" ] ) ; 
137124          } 
125+           newStudiesData [ "resources" ] . forEach ( newStudyData  =>  { 
126+             if  ( newStudyData [ "showDisabled" ] )  { 
127+               this . __addDisabledButton ( newStudyData ) ; 
128+             }  else  if  ( newStudyData [ "resourceType" ]  ===  "study" )  { 
129+               this . __addEmptyStudyButton ( newStudyData ) ; 
130+             }  else  if  ( newStudyData [ "resourceType" ]  ===  "template" )  { 
131+               this . __addFromTemplateButton ( newStudyData ,  templates ) ; 
132+             }  else  if  ( newStudyData [ "resourceType" ]  ===  "service" )  { 
133+               this . __addFromServiceButton ( newStudyData ) ; 
134+             } 
135+           } ) ; 
138136        } ) ; 
139-       } ) ; 
140137    } , 
141138
142139    __getLastIdxFromCategory : function ( categoryId )  { 
0 commit comments