@@ -43,8 +43,8 @@ qx.Class.define("osparc.vipMarket.Market", {
4343 const licensedItems = values [ 0 ] ;
4444 const categories = { } ;
4545 licensedItems . forEach ( licensedItem => {
46- if ( licensedItem [ "licensedResourceData" ] && licensedItem [ "licensedResourceData" ] [ "category " ] ) {
47- const category = licensedItem [ "licensedResourceData" ] [ "category " ] ;
46+ if ( licensedItem [ "licensedResourceData" ] && licensedItem [ "licensedResourceData" ] [ "categoryId " ] ) {
47+ const category = licensedItem [ "licensedResourceData" ] [ "categoryId " ] ;
4848 if ( ! ( category in categories ) ) {
4949 categories [ category ] = [ ] ;
5050 }
@@ -53,24 +53,25 @@ qx.Class.define("osparc.vipMarket.Market", {
5353 } ) ;
5454
5555 const expectedCategories = [ {
56- category : "HumanWholeBody" ,
56+ categoryId : "HumanWholeBody" ,
5757 label : "Humans" ,
5858 icon : "@FontAwesome5Solid/users/20" ,
5959 } , {
60- category : "HumanBodyRegion" ,
60+ categoryId : "HumanBodyRegion" ,
6161 label : "Humans (Region)" ,
6262 icon : "@FontAwesome5Solid/users/20" ,
6363 } , {
64- category : "AnimalWholeBody" ,
64+ categoryId : "AnimalWholeBody" ,
6565 label : "Animals" ,
6666 icon : "@FontAwesome5Solid/users/20" ,
6767 } , {
68- category : "ComputationalPhantom" ,
68+ categoryId : "ComputationalPhantom" ,
6969 label : "Phantoms" ,
7070 icon : "@FontAwesome5Solid/users/20" ,
7171 } ]
7272 expectedCategories . forEach ( expectedCategory => {
73- this . __buildViPMarketPage ( expectedCategory , categories [ expectedCategory [ "category" ] ] ) ;
73+ const items = categories [ expectedCategory [ "categoryId" ] ] ;
74+ this . __buildViPMarketPage ( expectedCategory , items ) ;
7475 } ) ;
7576
7677 if ( openCategory ) {
@@ -96,12 +97,12 @@ qx.Class.define("osparc.vipMarket.Market", {
9697 __buildViPMarketPage : function ( marketTabInfo , licensedItems = [ ] ) {
9798 const vipMarketView = new osparc . vipMarket . VipMarket ( licensedItems ) ;
9899 vipMarketView . set ( {
99- category : marketTabInfo [ "category " ] ,
100+ category : marketTabInfo [ "categoryId " ] ,
100101 } ) ;
101102 this . bind ( "openBy" , vipMarketView , "openBy" ) ;
102103 vipMarketView . addListener ( "importMessageSent" , ( ) => this . fireEvent ( "importMessageSent" ) ) ;
103104 const page = this . addTab ( marketTabInfo [ "label" ] , marketTabInfo [ "icon" ] , vipMarketView ) ;
104- page . category = marketTabInfo [ "category " ] ;
105+ page . category = marketTabInfo [ "categoryId " ] ;
105106 return page ;
106107 } ,
107108
0 commit comments