Skip to content

Commit a51dc9a

Browse files
committed
minor
1 parent 1a403bf commit a51dc9a

File tree

1 file changed

+5
-4
lines changed
  • services/static-webserver/client/source/class/osparc/desktop

1 file changed

+5
-4
lines changed

services/static-webserver/client/source/class/osparc/desktop/StudyEditor.js

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -360,14 +360,15 @@ qx.Class.define("osparc.desktop.StudyEditor", {
360360
const newValue = delta[studyPropertyKey][1];
361361
if ("lastChangeDate" === studyPropertyKey) {
362362
this.getStudy().setLastChangeDate(new Date(newValue));
363-
return;
363+
} else {
364+
const upKey = qx.lang.String.firstUp(studyPropertyKey);
365+
const setter = "set" + upKey;
366+
this.getStudy()[setter](newValue);
364367
}
365-
const upKey = qx.lang.String.firstUp(studyPropertyKey);
366-
const setter = "set" + upKey;
367-
this.getStudy()[setter](newValue);
368368
delete delta[studyPropertyKey];
369369
}
370370
});
371+
371372
if(Object.keys(delta).length > 0) {
372373
console.warn("projectDocument:updated delta has unhandled properties", delta);
373374
}

0 commit comments

Comments
 (0)