Skip to content

Commit 36d9543

Browse files
committed
minor
1 parent 1af9922 commit 36d9543

File tree

1 file changed

+13
-9
lines changed

1 file changed

+13
-9
lines changed

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

Lines changed: 13 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -110,15 +110,19 @@ qx.Class.define("osparc.desktop.MainPageHandler", {
110110

111111
this.setLoadingPageHeader(qx.locale.Manager.tr("Loading ") + studyData.name);
112112
this.showLoadingPage();
113-
const inaccessibleServices = osparc.store.Services.getInaccessibleServices(studyData["workbench"])
114-
if (inaccessibleServices.length) {
115-
const msg = osparc.store.Services.getInaccessibleServicesMsg(inaccessibleServices, studyData["workbench"]);
116-
osparc.FlashMessenger.getInstance().logAs(msg, "ERROR");
117-
this.showDashboard();
118-
return;
119-
}
120-
this.showStudyEditor();
121-
this.__studyEditor.setStudyData(studyData);
113+
114+
osparc.store.Services.getStudyServicesMetadata(studyData)
115+
.finally(() => {
116+
const inaccessibleServices = osparc.store.Services.getInaccessibleServices(studyData["workbench"])
117+
if (inaccessibleServices.length) {
118+
const msg = osparc.store.Services.getInaccessibleServicesMsg(inaccessibleServices, studyData["workbench"]);
119+
osparc.FlashMessenger.getInstance().logAs(msg, "ERROR");
120+
this.showDashboard();
121+
return;
122+
}
123+
this.showStudyEditor();
124+
this.__studyEditor.setStudyData(studyData);
125+
});
122126
}
123127
}
124128
});

0 commit comments

Comments
 (0)