File tree Expand file tree Collapse file tree 1 file changed +7
-7
lines changed
services/static-webserver/client/source/class/osparc/data/model Expand file tree Collapse file tree 1 file changed +7
-7
lines changed Original file line number Diff line number Diff 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 } ) ;
You can’t perform that action at this time.
0 commit comments