We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c3f81f0 commit 42db889Copy full SHA for 42db889
services/static-webserver/client/source/class/osparc/workbench/Annotation.js
@@ -76,7 +76,8 @@ qx.Class.define("osparc.workbench.Annotation", {
76
check: "Color",
77
event: "changeColor",
78
init: "#FFFF01",
79
- apply: "__applyColor"
+ nullable: true,
80
+ apply: "__applyColor",
81
},
82
83
attributes: {
@@ -223,11 +224,14 @@ qx.Class.define("osparc.workbench.Annotation", {
223
224
225
226
serialize: function() {
- return {
227
+ const data = {
228
type: this.getType(),
229
attributes: this.getAttributes(),
- color: this.getColor()
230
- };
+ }
231
+ if (this.getColor()) {
232
+ data.color = this.getColor();
233
234
+ return data;
235
}
236
237
});
0 commit comments