Skip to content

Commit 7dc40ff

Browse files
committed
support empty description
1 parent da84743 commit 7dc40ff

File tree

1 file changed

+6
-3
lines changed
  • services/static-webserver/client/source/class/osparc/form/tag

1 file changed

+6
-3
lines changed

services/static-webserver/client/source/class/osparc/form/tag/TagItem.js

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -309,10 +309,13 @@ qx.Class.define("osparc.form.tag.TagItem", {
309309
* Creates an object containing the udpated tag info
310310
*/
311311
__serializeData: function() {
312+
const name = this.getChildControl("nameinput").getValue();
313+
const description = this.getChildControl("descriptioninput").getValue();
314+
const color = this.getChildControl("colorinput").getValue();
312315
return {
313-
name: this.getChildControl("nameinput").getValue().trim(),
314-
description: this.getChildControl("descriptioninput").getValue().trim(),
315-
color: this.getChildControl("colorinput").getValue()
316+
name: name.trim(),
317+
description: description ? description.trim() : "",
318+
color: color
316319
};
317320
},
318321
_applyMode: function() {

0 commit comments

Comments
 (0)