Skip to content

Commit 5309948

Browse files
committed
renaming
1 parent 52939af commit 5309948

File tree

1 file changed

+7
-7
lines changed
  • services/static-webserver/client/source/class/osparc/data/model

1 file changed

+7
-7
lines changed

services/static-webserver/client/source/class/osparc/data/model/Study.js

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -751,17 +751,17 @@ qx.Class.define("osparc.data.model.Study", {
751751
promises.push(this.getWorkbench().patchWorkbenchDelayed(studyDiffs["workbench"], studySource["workbench"]));
752752
delete studyDiffs["workbench"];
753753
}
754-
const fieldKeys = Object.keys(studyDiffs);
755-
if (fieldKeys.length) {
756-
fieldKeys.forEach(fieldKey => {
754+
const changedFields = Object.keys(studyDiffs);
755+
if (changedFields.length) {
756+
changedFields.forEach(changedField => {
757757
// OM: can this be called all together?
758758
const patchData = {};
759-
if (fieldKey === "ui") {
760-
patchData[fieldKey] = this.getUi().serialize();
759+
if (changedField === "ui") {
760+
patchData[changedField] = this.getUi().serialize();
761761
} else {
762-
const upKey = qx.lang.String.firstUp(fieldKey);
762+
const upKey = qx.lang.String.firstUp(changedField);
763763
const getter = "get" + upKey;
764-
patchData[fieldKey] = this[getter](studyDiffs[fieldKey]);
764+
patchData[changedField] = this[getter](studyDiffs[changedField]);
765765
}
766766
promises.push(osparc.store.Study.getInstance().patchStudy(this.getUuid(), patchData))
767767
});

0 commit comments

Comments
 (0)