Skip to content

Commit a8c3631

Browse files
committed
serialize color for all annotations
1 parent 2bfb1c9 commit a8c3631

File tree

1 file changed

+1
-7
lines changed
  • services/static-webserver/client/source/class/osparc/workbench

1 file changed

+1
-7
lines changed

services/static-webserver/client/source/class/osparc/workbench/Annotation.js

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -276,13 +276,7 @@ qx.Class.define("osparc.workbench.Annotation", {
276276
const serializeData = {
277277
type: this.getType(),
278278
attributes: this.getAttributes(),
279-
};
280-
if ([
281-
this.self().TYPES.RECT,
282-
this.self().TYPES.TEXT,
283-
this.self().TYPES.NOTE,
284-
].includes(this.getType())) {
285-
serializeData.color = this.getColor();
279+
color: this.getColor(), // TYPES.NOTE and TYPES.CONVERSATION do not need a color but backend expects it
286280
}
287281
return serializeData;
288282
}

0 commit comments

Comments
 (0)