Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

🎨🐛 [Frontend] Reduce the initial number of patch calls #6641

Merged
merged 15 commits into from
Nov 1, 2024
Next Next commit
null values are fine
  • Loading branch information
odeimaiz committed Oct 30, 2024
commit b3d318b1f7a87e16f62db51fadaf6ef529268ce2
Original file line number Diff line number Diff line change
@@ -82,14 +82,14 @@ qx.Class.define("osparc.data.model.Study", {

workspaceId: {
check: "Number",
init: true,
init: null,
nullable: true,
event: "changeWorkspaceId"
},

folderId: {
check: "Number",
init: true,
init: null,
nullable: true,
event: "changeFolderId"
},
@@ -103,9 +103,9 @@ qx.Class.define("osparc.data.model.Study", {

description: {
check: "String",
nullable: false,
nullable: true,
event: "changeDescription",
init: ""
init: null
},

prjOwner: {
@@ -356,11 +356,7 @@ qx.Class.define("osparc.data.model.Study", {
jsonObject[key] = this.getUi().serialize();
return;
}
const value = this.get(key);
if (value !== null) {
// only put the value in the payload if there is a value
jsonObject[key] = value;
}
jsonObject[key] = this.get(key);
});
return jsonObject;
},
Loading