File tree Expand file tree Collapse file tree 1 file changed +8
-2
lines changed
services/static-webserver/client/source/class/osparc/study Expand file tree Collapse file tree 1 file changed +8
-2
lines changed Original file line number Diff line number Diff line change @@ -23,7 +23,9 @@ qx.Class.define("osparc.study.StudyOptions", {
2323
2424 this . _setLayout ( new qx . ui . layout . VBox ( 15 ) ) ;
2525
26- this . setStudyId ( studyId ) ;
26+ if ( studyId ) {
27+ this . setStudyId ( studyId ) ;
28+ }
2729 } ,
2830
2931 properties : {
@@ -192,7 +194,7 @@ qx.Class.define("osparc.study.StudyOptions", {
192194 ] )
193195 . then ( values => {
194196 const studyData = values [ 0 ] ;
195- this . __studyData = osparc . data . model . Study . deepCloneStudyObject ( studyData ) ;
197+ this . setStudyData ( studyData ) ;
196198
197199 if ( values [ 1 ] && "walletId" in values [ 1 ] ) {
198200 this . __studyWalletId = values [ 1 ] [ "walletId" ] ;
@@ -201,6 +203,10 @@ qx.Class.define("osparc.study.StudyOptions", {
201203 } ) ;
202204 } ,
203205
206+ setStudyData : function ( studyData ) {
207+ this . __studyData = osparc . data . model . Study . deepCloneStudyObject ( studyData ) ;
208+ } ,
209+
204210 __applyWallet : function ( wallet ) {
205211 if ( wallet ) {
206212 const walletSelector = this . getChildControl ( "wallet-selector" ) ;
You can’t perform that action at this time.
0 commit comments