diff --git a/src/client/src/app/modules/campaign/result/result.component.ts b/src/client/src/app/modules/campaign/result/result.component.ts index 173cdeb..8f8112d 100644 --- a/src/client/src/app/modules/campaign/result/result.component.ts +++ b/src/client/src/app/modules/campaign/result/result.component.ts @@ -339,7 +339,7 @@ export class ResultComponent implements OnInit, OnDestroy { const years = [...new Set(inspectobj.map(inspection => new Date(inspection.date).getFullYear()))]; // Add year columns - years.forEach(year => { + years.forEach((year: number) => { columns[year] = { title: `${year}`, filter: false, @@ -360,7 +360,7 @@ export class ResultComponent implements OnInit, OnDestroy { rowData['inspector'] = inspectorName; // Set inspector data for each year - years.forEach(year => { + years.forEach((year: number) => { const inspectionForYear = inspectobj.find(inspection => new Date(inspection.date).getFullYear() === year && inspection.inspector.name === inspectorName );