Skip to content

Commit 4799202

Browse files
committed
minor
1 parent 06aae7e commit 4799202

File tree

1 file changed

+9
-7
lines changed

1 file changed

+9
-7
lines changed

services/static-webserver/client/source/class/osparc/info/ServiceUtils.js

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -106,15 +106,17 @@ qx.Class.define("osparc.info.ServiceUtils", {
106106
wrap: true,
107107
maxWidth: 220,
108108
});
109-
authors.set({
110-
value: serviceData["authors"].map(author => author["name"]).join(", "),
111-
});
112-
serviceData["authors"].forEach(author => {
113-
const oldTTT = authors.getToolTipText();
109+
if (serviceData["authors"]) {
114110
authors.set({
115-
toolTipText: (oldTTT ? oldTTT : "") + `${author["email"]} - ${author["affiliation"]}<br>`
111+
value: serviceData["authors"].map(author => author["name"]).join(", "),
116112
});
117-
});
113+
serviceData["authors"].forEach(author => {
114+
const oldTTT = authors.getToolTipText();
115+
authors.set({
116+
toolTipText: (oldTTT ? oldTTT : "") + `${author["email"]} - ${author["affiliation"]}<br>`
117+
});
118+
});
119+
}
118120
return authors;
119121
},
120122

0 commit comments

Comments
 (0)