Skip to content

Commit c1a40a5

Browse files
committed
return promises
1 parent 3565d13 commit c1a40a5

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

services/static-webserver/client/source/class/osparc/desktop/MainPageHandler.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ qx.Class.define("osparc.desktop.MainPageHandler", {
7070
const msg = qx.locale.Manager.tr("Project not found");
7171
throw new Error(msg);
7272
}
73-
this.loadStudy(studyData);
73+
return this.loadStudy(studyData); // return so errors propagate
7474
})
7575
.catch(err => {
7676
osparc.FlashMessenger.logError(err);
@@ -108,7 +108,7 @@ qx.Class.define("osparc.desktop.MainPageHandler", {
108108
this.setLoadingPageHeader(qx.locale.Manager.tr("Loading ") + studyData.name);
109109
this.showLoadingPage();
110110

111-
osparc.store.Services.getStudyServicesMetadata(studyData)
111+
return osparc.store.Services.getStudyServicesMetadata(studyData)
112112
.finally(() => {
113113
const inaccessibleServices = osparc.store.Services.getInaccessibleServices(studyData["workbench"]);
114114
if (inaccessibleServices.length) {

0 commit comments

Comments
 (0)