diff --git a/src/config/mapping/grants/grantOverview.json b/src/config/mapping/grants/grantOverview.json index 011b7e9..2fcd348 100644 --- a/src/config/mapping/grants/grantOverview.json +++ b/src/config/mapping/grants/grantOverview.json @@ -16,6 +16,7 @@ {"label": "Signed", "value": "Total Signed Amount - Reference Rate"} ] }, + "code": "code", "status": "status.statusName", "narratives": "narratives", "narrative": { diff --git a/src/controllers/grants.controller.ts b/src/controllers/grants.controller.ts index a13c8e8..d501172 100644 --- a/src/controllers/grants.controller.ts +++ b/src/controllers/grants.controller.ts @@ -207,7 +207,9 @@ export class GrantsController { [GrantOverviewMapping.implementationPeriodFrom], ['asc'], ); - const period = periods[ip - 1]; + const period = _.find(periods, { + [GrantOverviewMapping.implementationPeriod.code]: `${id}P0${ip}`, + }); const data: { status: string; goals: string[];