Skip to content

Commit d15d7ee

Browse files
committed
minor
1 parent f436674 commit d15d7ee

File tree

1 file changed

+4
-3
lines changed
  • services/static-webserver/client/source/class/osparc/study

1 file changed

+4
-3
lines changed

services/static-webserver/client/source/class/osparc/study/Utils.js

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -442,7 +442,7 @@ qx.Class.define("osparc.study.Utils", {
442442
if (studyData["ui"]["mode"] === "pipeline") {
443443
resolve(osparc.data.model.StudyUI.PIPELINE_ICON);
444444
} else {
445-
const defaultIcon = osparc.dashboard.CardBase.PRODUCT_ICON;
445+
const productIcon = osparc.dashboard.CardBase.PRODUCT_ICON;
446446
// the was to guess the TI type is to check the boot mode of the ti-postpro in the pipeline
447447
const wbServices = this.self().getNonFrontendNodes(studyData);
448448
if (wbServices.length === 1) {
@@ -452,8 +452,9 @@ qx.Class.define("osparc.study.Utils", {
452452
if (serviceMetadata && serviceMetadata["icon"]) {
453453
resolve(serviceMetadata["icon"]);
454454
}
455-
resolve(defaultIcon);
456-
});
455+
resolve(productIcon);
456+
})
457+
.catch(() => resolve(productIcon));
457458
} else {
458459
resolve(osparc.data.model.StudyUI.PIPELINE_ICON);
459460
}

0 commit comments

Comments
 (0)