Skip to content

Commit

Permalink
fix: grant implementation period filtering
Browse files Browse the repository at this point in the history
  • Loading branch information
stephanoshadjipetrou committed Jul 8, 2024
1 parent da33989 commit e39d9d6
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
1 change: 1 addition & 0 deletions src/config/mapping/grants/grantOverview.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
{"label": "Signed", "value": "Total Signed Amount - Reference Rate"}
]
},
"code": "code",
"status": "status.statusName",
"narratives": "narratives",
"narrative": {
Expand Down
4 changes: 3 additions & 1 deletion src/controllers/grants.controller.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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[];
Expand Down

0 comments on commit e39d9d6

Please sign in to comment.