Skip to content

Commit

Permalink
dont create, get from study
Browse files Browse the repository at this point in the history
  • Loading branch information
odeimaiz committed Aug 13, 2024
1 parent 2e41b98 commit ed7bc8f
Showing 1 changed file with 1 addition and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -25,23 +25,14 @@ qx.Class.define("osparc.viewer.NodeViewer", {

this._setLayout(new qx.ui.layout.VBox());

let studyData = null;
const params = {
url: {
studyId
},
data: osparc.utils.Utils.getClientSessionID()
};
osparc.data.Resources.fetch("studies", "open", params)
.then(resp => {
studyData = resp;
if (studyData["workbench"] && nodeId in studyData["workbench"]) {
const nodeData = studyData["workbench"][nodeId];
return osparc.service.Store.getService(nodeData.key, nodeData.version)
}
throw new Error("Node data not found in Study");
})
.then(metadata => {
.then(studyData => {
// create study
const study = new osparc.data.model.Study(studyData);
this.setStudy(study);
Expand Down

0 comments on commit ed7bc8f

Please sign in to comment.