Skip to content

Commit d832a46

Browse files
authored
🐛 [Frontend] Shop: Fix thumbnail (#7335)
1 parent 0aaea67 commit d832a46

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

services/static-webserver/client/source/class/osparc/vipMarket/LicensedItemListItem.js

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -172,7 +172,9 @@ qx.Class.define("osparc.vipMarket.LicensedItemListItem", {
172172
},
173173

174174
__applyThumbnail: function(value) {
175-
this.getChildControl("thumbnail").setSource(value);
175+
if (value) {
176+
this.getChildControl("thumbnail").setSource(value);
177+
}
176178
},
177179

178180
__applyDisplayName: function(value) {
@@ -184,6 +186,9 @@ qx.Class.define("osparc.vipMarket.LicensedItemListItem", {
184186
},
185187

186188
__applySeats: function(seats) {
189+
if (seats === null || seats.length === 0) {
190+
return;
191+
}
187192
const nSeatsLabel = this.getChildControl("n-seats");
188193
const nSeats = osparc.store.LicensedItems.seatsToNSeats(seats);
189194
if (nSeats) {

0 commit comments

Comments
 (0)