Skip to content

Commit dbcc99f

Browse files
committed
expose studyData
1 parent 8f182d3 commit dbcc99f

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

services/static-webserver/client/source/class/osparc/study/StudyOptions.js

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff 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");

0 commit comments

Comments
 (0)