Skip to content

Commit

Permalink
update ntvi 01
Browse files Browse the repository at this point in the history
  • Loading branch information
tharlestsa committed Oct 22, 2024
1 parent 099d9a8 commit 6cc2e11
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand All @@ -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
);
Expand Down

0 comments on commit 6cc2e11

Please sign in to comment.