@@ -24,7 +24,6 @@ qx.Class.define("osparc.study.StudyOptions", {
2424 this . _setLayout ( new qx . ui . layout . VBox ( 15 ) ) ;
2525
2626 if ( studyId ) {
27- this . __studyId = studyId ;
2827 this . setStudyId ( studyId ) ;
2928 }
3029 } ,
@@ -34,7 +33,7 @@ qx.Class.define("osparc.study.StudyOptions", {
3433 check : "String" ,
3534 init : null ,
3635 nullable : false ,
37- apply : "__applyStudyId "
36+ apply : "__fetchStudy "
3837 } ,
3938
4039 wallet : {
@@ -85,7 +84,6 @@ qx.Class.define("osparc.study.StudyOptions", {
8584 } ,
8685
8786 members : {
88- __studyId : null ,
8987 __studyData : null ,
9088 __studyWalletId : null ,
9189
@@ -184,7 +182,7 @@ qx.Class.define("osparc.study.StudyOptions", {
184182 return control || this . base ( arguments , id ) ;
185183 } ,
186184
187- __applyStudyId : function ( studyId ) {
185+ __fetchStudy : function ( studyId ) {
188186 const params = {
189187 url : {
190188 studyId
@@ -304,10 +302,11 @@ qx.Class.define("osparc.study.StudyOptions", {
304302 // second, update the wallet if necessary
305303 const store = osparc . store . Store . getInstance ( ) ;
306304 const walletSelection = this . getChildControl ( "wallet-selector" ) . getSelection ( ) ;
307- if ( this . __studyId && walletSelection . length && walletSelection [ 0 ] [ "walletId" ] ) {
305+ const studyId = this . getStudyId ( ) ;
306+ if ( studyId && walletSelection . length && walletSelection [ 0 ] [ "walletId" ] ) {
308307 const params = {
309308 url : {
310- " studyId" : this . __studyId ,
309+ studyId,
311310 "walletId" : walletSelection [ 0 ] [ "walletId" ]
312311 }
313312 } ;
0 commit comments