@@ -70,8 +70,8 @@ qx.Class.define("osparc.vipMarket.AnatomicalModelDetails", {
7070 __populateLayout : function ( ) {
7171 this . _removeAll ( ) ;
7272
73- const anatomicalModelsData = this . getAnatomicalModelsData ( ) ;
74- if ( anatomicalModelsData && anatomicalModelsData [ "licensedResources" ] . length ) {
73+ const licensedItemBundleData = this . getAnatomicalModelsData ( ) ;
74+ if ( licensedItemBundleData && licensedItemBundleData [ "licensedResources" ] . length ) {
7575 this . __addModelsInfo ( ) ;
7676 this . __addPricing ( ) ;
7777 this . __addSeatsSection ( ) ;
@@ -94,8 +94,8 @@ qx.Class.define("osparc.vipMarket.AnatomicalModelDetails", {
9494 this . __selectedModelLayout = new qx . ui . container . Composite ( new qx . ui . layout . VBox ( 6 ) ) ;
9595 modelLayout . add ( this . __selectedModelLayout ) ;
9696
97- const anatomicalModelsData = this . getAnatomicalModelsData ( ) ;
98- const modelsInfo = anatomicalModelsData [ "licensedResources" ] ;
97+ const licensedItemBundleData = this . getAnatomicalModelsData ( ) ;
98+ const modelsInfo = licensedItemBundleData [ "licensedResources" ] ;
9999 if ( modelsInfo . length > 1 ) {
100100 const modelSelectionLayout = new qx . ui . container . Composite ( new qx . ui . layout . VBox ( 4 ) ) ;
101101 const titleLabel = new qx . ui . basic . Label ( this . tr ( "This bundle contains:" ) ) ;
@@ -133,11 +133,12 @@ qx.Class.define("osparc.vipMarket.AnatomicalModelDetails", {
133133 __populateSelectedModelInfo : function ( selectedIdx = 0 ) {
134134 this . __selectedModelLayout . removeAll ( ) ;
135135
136- const anatomicalModelsData = this . getAnatomicalModelsData ( ) ;
136+ const licensedItemBundleData = this . getAnatomicalModelsData ( ) ;
137137
138138 const topGrid = new qx . ui . layout . Grid ( 8 , 6 ) ;
139139 topGrid . setColumnFlex ( 0 , 1 ) ;
140140 const headerLayout = new qx . ui . container . Composite ( topGrid ) ;
141+ const anatomicalModel = licensedItemBundleData [ "licensedResources" ] [ selectedIdx ] [ "source" ] ;
141142 const anatomicalModel = anatomicalModelsData [ "licensedResources" ] [ selectedIdx ] [ "source" ] ;
142143 let description = anatomicalModel [ "description" ] || "" ;
143144 description = description . replace ( / S P E A G / g, " " ) ; // remove SPEAG substring
@@ -288,7 +289,7 @@ qx.Class.define("osparc.vipMarket.AnatomicalModelDetails", {
288289
289290 this . __selectedModelLayout . add ( middleLayout ) ;
290291
291- const importSection = this . __createImportSection ( anatomicalModelsData , selectedIdx ) ;
292+ const importSection = this . __createImportSection ( licensedItemBundleData , selectedIdx ) ;
292293 this . __selectedModelLayout . add ( importSection ) ;
293294 } ,
294295
0 commit comments