From 6cc2e115f393d185d016dec64630d794770eccc1 Mon Sep 17 00:00:00 2001 From: Tharles de Sousa Andrade Date: Mon, 21 Oct 2024 22:25:20 -0300 Subject: [PATCH] update ntvi 01 --- .../src/app/modules/campaign/result/result.component.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 );