Skip to content

Commit b95bfa8

Browse files
committed
minor
1 parent 0c46002 commit b95bfa8

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -261,7 +261,7 @@ qx.Class.define("osparc.desktop.MainPage", {
261261
// these operations need to be done after template creation
262262
osparc.store.Study.addCollaborators(templateData, templateAccessRights);
263263
if (templateType) {
264-
osparc.store.Study.patchTemplateType(templateData, templateType)
264+
osparc.store.Study.patchTemplateType(templateData["uuid"], templateType)
265265
.then(() => {
266266
if (tutorialBrowser && templateType === osparc.data.model.StudyUI.TUTORIAL_TYPE) {
267267
tutorialBrowser.reloadResources(false);

services/static-webserver/client/source/class/osparc/store/Study.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,10 +41,10 @@ qx.Class.define("osparc.store.Study", {
4141
});
4242
},
4343

44-
patchTemplateType: function(templateData, templateType) {
44+
patchTemplateType: function(templateId, templateType) {
4545
const params = {
4646
url: {
47-
"studyId": templateData["uuid"]
47+
"studyId": templateId
4848
},
4949
data: {
5050
"templateType": templateType,

0 commit comments

Comments
 (0)