File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed
services/static-webserver/client/source/class/osparc/dashboard Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -182,8 +182,10 @@ qx.Class.define("osparc.dashboard.NewStudies", {
182182 const title = templateInfo . title ;
183183 const desc = templateInfo . description ;
184184 const newPlanButton = new osparc . dashboard . GridButtonNew ( title , desc ) ;
185- newPlanButton . setCardKey ( templateInfo . idToWidget ) ;
186- osparc . utils . Utils . setIdToWidget ( newPlanButton , templateInfo . idToWidget ) ;
185+ if ( templateInfo [ "idToWidget" ] ) {
186+ newPlanButton . setCardKey ( templateInfo [ "idToWidget" ] ) ;
187+ osparc . utils . Utils . setIdToWidget ( newPlanButton , templateInfo [ "idToWidget" ] ) ;
188+ }
187189 newPlanButton . addListener ( "tap" , ( ) => newStudyClicked ( ) ) ;
188190 return newPlanButton ;
189191 } ,
You can’t perform that action at this time.
0 commit comments