File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed
services/static-webserver/client/source/class/osparc Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -257,7 +257,7 @@ qx.Class.define("osparc.desktop.MainPage", {
257257 // these operations need to be done after template creation
258258 osparc . store . Study . getInstance ( ) . addCollaborators ( templateData , templateAccessRights ) ;
259259 if ( templateType ) {
260- osparc . store . Study . getInstance ( ) . patchTemplateType ( templateData [ "uuid" ] , templateType )
260+ osparc . store . Study . getInstance ( ) . patchTemplateType ( templateData , templateType )
261261 . then ( ( ) => {
262262 if ( tutorialBrowser && templateType === osparc . data . model . StudyUI . TUTORIAL_TYPE ) {
263263 tutorialBrowser . reloadResources ( false ) ;
Original file line number Diff line number Diff line change @@ -95,7 +95,7 @@ qx.Class.define("osparc.info.StudyLarge", {
9595 if ( selected ) {
9696 saveBtn . setFetching ( true ) ;
9797 const templateType = selected . getModel ( ) ;
98- osparc . store . Study . getInstance ( ) . patchTemplateType ( this . getStudy ( ) . getUuid ( ) , templateType )
98+ osparc . store . Study . getInstance ( ) . patchTemplateType ( this . getStudy ( ) . serialize ( ) , templateType )
9999 . then ( ( ) => osparc . FlashMessenger . logAs ( this . tr ( "Template type updated, please reload" ) , "INFO" ) )
100100 . catch ( err => osparc . FlashMessenger . logError ( err ) )
101101 . finally ( ( ) => saveBtn . setFetching ( false ) ) ;
You can’t perform that action at this time.
0 commit comments