File tree Expand file tree Collapse file tree 1 file changed +7
-5
lines changed
services/static-webserver/client/source/class/osparc/study Expand file tree Collapse file tree 1 file changed +7
-5
lines changed Original file line number Diff line number Diff line change @@ -34,11 +34,12 @@ qx.Class.define("osparc.study.StudyPreview", {
3434 statics : {
3535 __popUpPreview : function ( studyData ) {
3636 const cantReadServices = osparc . study . Utils . getCantReadServices ( studyData [ "services" ] ) ;
37- if ( cantReadServices . length ) {
38- unknownServices ( cantReadServices ) ;
37+ if ( cantReadServices && cantReadServices . length ) {
38+ osparc . FlashMessenger . logError ( "Function Data not available" ) ;
39+ return ;
3940 }
40- const templateModel = new osparc . data . model . Study ( studyData ) ;
41- const preview = new osparc . study . StudyPreview ( templateModel ) ;
41+ const study = new osparc . data . model . Study ( studyData ) ;
42+ const preview = new osparc . study . StudyPreview ( study ) ;
4243 const title = this . tr ( "Function Preview" ) ;
4344 const width = osparc . dashboard . ResourceDetails . WIDTH ;
4445 const height = osparc . dashboard . ResourceDetails . HEIGHT ;
@@ -49,13 +50,14 @@ qx.Class.define("osparc.study.StudyPreview", {
4950 if ( "services" in studyData ) {
5051 this . __popUpPreview ( studyData ) ;
5152 } else {
52- osparc . store . Services . getStudyServices ( resourceData . uuid )
53+ osparc . store . Services . getStudyServices ( studyData )
5354 . then ( resp => {
5455 const services = resp [ "services" ] ;
5556 studyData [ "services" ] = services ;
5657 this . __popUpPreview ( studyData ) ;
5758 } ) ;
5859 }
60+ }
5961 } ,
6062
6163 members : {
You can’t perform that action at this time.
0 commit comments