Skip to content

Commit d4d0fca

Browse files
committed
comment
1 parent 0dd19a0 commit d4d0fca

File tree

1 file changed

+6
-1
lines changed
  • services/static-webserver/client/source/class/osparc/desktop

1 file changed

+6
-1
lines changed

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

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -832,14 +832,19 @@ qx.Class.define("osparc.desktop.StudyEditor", {
832832
}
833833
},
834834

835+
/**
836+
* @param {JSON Patch} data It will soon be used to patch the study document https://datatracker.ietf.org/doc/html/rfc6902
837+
*/
835838
updateStudyDocument: function(data = null) {
836839
if (!osparc.data.model.Study.canIWrite(this.getStudy().getAccessRights())) {
837840
return new Promise(resolve => {
838841
resolve();
839842
});
840843
}
841844

842-
console.log("updateStudyDocument", data);
845+
if (osparc.utils.Utils.isDevelopmentPlatform()) {
846+
console.log("updateStudyDocument", data); // For debugging purposes
847+
}
843848

844849
this.__updatingStudy++;
845850
const studyDiffs = this.__getStudyDiffs();

0 commit comments

Comments
 (0)