diff --git a/app/next-client-app/app/(protected)/scanreports/[id]/columns.tsx b/app/next-client-app/app/(protected)/scanreports/[id]/columns.tsx index 4dfba19f4..303ddfad3 100644 --- a/app/next-client-app/app/(protected)/scanreports/[id]/columns.tsx +++ b/app/next-client-app/app/(protected)/scanreports/[id]/columns.tsx @@ -56,13 +56,8 @@ export const columns: ColumnDef[] = [ cell: ({ row }) => { const { id, name, jobs } = row.original; // Filter the jobs based on the scanReportTable ID - let jobsData: Job[] = []; - console.log("🚀 ~ jobsData:", jobsData); - jobs.map((job) => { - if (job.scan_report_table == id) { - jobsData.push(job); - } - }); + const jobsData: Job[] = jobs.filter((job) => job.scan_report_table == id); + // Get the general status of the table const generalStatus = FindGeneralStatus(jobsData);