@@ -464,7 +464,10 @@ export class DataLayer {
464464 return null ;
465465 }
466466
467- return response . applications [ 0 ] ;
467+ const application = response . applications [ 0 ] ;
468+ application . project . metadata = application . metadata . application . project ;
469+
470+ return application ;
468471 }
469472
470473 async getApplicationsForExplorer ( {
@@ -485,7 +488,12 @@ export class DataLayer {
485488 requestVariables ,
486489 ) ;
487490
488- return response . applications ?? [ ] ;
491+ return (
492+ response . applications . map ( ( application ) => {
493+ application . project . metadata = application . metadata . application . project ;
494+ return application ;
495+ } ) ?? [ ]
496+ ) ;
489497 }
490498
491499 /**
@@ -795,19 +803,25 @@ export class DataLayer {
795803 } ,
796804 ) ;
797805
798- return response . donations . filter ( ( donation ) => {
799- if ( donation . round . strategyName !== "allov2.DirectAllocationStrategy" ) {
800- return (
801- donation . application !== null &&
802- donation . application ?. project !== null
803- ) ;
804- } else {
805- return (
806- // DirectAllocationStrategy donations are not linked to applications
807- donation . application === null
808- ) ;
809- }
810- } ) ;
806+ return response . donations
807+ . filter ( ( donation ) => {
808+ if ( donation . round . strategyName !== "allov2.DirectAllocationStrategy" ) {
809+ return (
810+ donation . application !== null &&
811+ donation . application ?. project !== null
812+ ) ;
813+ } else {
814+ return (
815+ // DirectAllocationStrategy donations are not linked to applications
816+ donation . application === null
817+ ) ;
818+ }
819+ } )
820+ . map ( ( donation ) => {
821+ donation . application . project . metadata =
822+ donation . application . metadata . application . project ;
823+ return donation ;
824+ } ) ;
811825 }
812826
813827 async getPayoutsByChainIdRoundIdProjectId ( args : {
0 commit comments