Skip to content

Commit 905f22e

Browse files
committed
minor
1 parent c365cdd commit 905f22e

File tree

2 files changed

+3
-7
lines changed

2 files changed

+3
-7
lines changed

services/static-webserver/client/source/class/osparc/jobs/Info.js

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -30,12 +30,8 @@ qx.Class.define("osparc.jobs.Info", {
3030
flex: 1
3131
});
3232
this.addListener("appear", () => {
33-
osparc.wrapper.JsonFormatter.getInstance().setData(info, divId);
33+
osparc.wrapper.JsonFormatter.getInstance().setJson(info, divId);
3434
});
35-
36-
return;
37-
const jobInfoViewer = this.getChildControl("job-info-viewer");
38-
jobInfoViewer.setJson(info);
3935
},
4036

4137
statics: {

services/static-webserver/client/source/class/osparc/wrapper/JsonFormatter.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -105,13 +105,13 @@ qx.Class.define("osparc.wrapper.JsonFormatter", {
105105
return container
106106
},
107107

108-
setData: function(myJSON, divId) {
108+
setJson: function(jsonObject, divId) {
109109
// Remove previous content
110110
const container = document.getElementById(divId);
111111
container.innerHTML = "";
112112

113113
// Render JSON
114-
const formatter = new JSONFormatter(myJSON, 2); // 2 = expand depth
114+
const formatter = new JSONFormatter(jsonObject, 2); // 2 = expand depth
115115
container.appendChild(formatter.render());
116116
},
117117
}

0 commit comments

Comments
 (0)