File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed
Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -45,7 +45,7 @@ export class CatalogBrowserService {
4545 datasets = [ datasets ] ;
4646 }
4747
48- for ( let i = 0 ; i < datasets . length ; i ++ ) {
48+ for ( let i = 0 ; i < datasets . length ; i ++ ) {
4949 const dataSet : any = datasets [ i ] ;
5050 const properties : { [ key : string ] : string ; } = {
5151 id : dataSet [ "id" ] ,
@@ -59,7 +59,7 @@ export class CatalogBrowserService {
5959 const hasPolicy = dataSet [ "odrl:hasPolicy" ] ;
6060 const policy : PolicyInput = {
6161 "@type" : "set" ,
62- "@context" : "http://www.w3.org/ns/odrl.jsonld" ,
62+ "@context" : "http://www.w3.org/ns/odrl.jsonld" ,
6363 "uid" : hasPolicy [ "@id" ] ,
6464 "assignee" : hasPolicy [ "assignee" ] ,
6565 "assigner" : hasPolicy [ "assigner" ] ,
@@ -83,9 +83,9 @@ export class CatalogBrowserService {
8383 }
8484 return arr ;
8585 } ) ) , reduce ( ( acc , val ) => {
86- for ( let i = 0 ; i < val . length ; i ++ ) {
87- for ( let j = 0 ; j < val [ i ] . length ; j ++ ) {
88- acc . push ( val [ i ] [ j ] ) ;
86+ for ( const subArray of val ) {
87+ for ( const item of subArray ) {
88+ acc . push ( item ) ;
8989 }
9090 }
9191 return acc ;
You can’t perform that action at this time.
0 commit comments