File tree Expand file tree Collapse file tree 1 file changed +13
-4
lines changed
services/static-webserver/client/source/class/osparc/widget Expand file tree Collapse file tree 1 file changed +13
-4
lines changed Original file line number Diff line number Diff line change @@ -332,12 +332,21 @@ qx.Class.define("osparc.widget.PersistentIframe", {
332332 }
333333 case "openFunction" : {
334334 // this is the MetaModeling service trying to show function/template information
335- if ( data [ "message" ] && data [ "message" ] [ "functionId" ] ) {
336- const templateId = data [ "message" ] [ "functionId" ] ;
337- const functionData = {
338- "uuid" : templateId ,
335+ let functionData = null ;
336+ if ( data [ "message" ] && data [ "message" ] [ "uuid" ] ) {
337+ // new version, the uuid is from the function
338+ functionData = {
339+ "uuid" : data [ "message" ] [ "uuid" ] ,
340+ "resourceType" : "function" ,
341+ } ;
342+ } else if ( data [ "message" ] && data [ "message" ] [ "functionId" ] ) {
343+ // old version, the uuid is from the template
344+ functionData = {
345+ "uuid" : data [ "message" ] [ "functionId" ] ,
339346 "resourceType" : "functionedTemplate" ,
340347 } ;
348+ }
349+ if ( functionData ) {
341350 const {
342351 resourceDetails,
343352 window,
You can’t perform that action at this time.
0 commit comments