From 77ad126530240335751a5dae2482657292e6baf4 Mon Sep 17 00:00:00 2001 From: smanylov Date: Thu, 9 Apr 2026 13:50:18 +0700 Subject: [PATCH] fix sorting for match table --- src/app/ui/violations/violations-table.tsx | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/src/app/ui/violations/violations-table.tsx b/src/app/ui/violations/violations-table.tsx index 1c0fb97..bcf0d73 100644 --- a/src/app/ui/violations/violations-table.tsx +++ b/src/app/ui/violations/violations-table.tsx @@ -22,8 +22,6 @@ interface ViolationFile { violationCount: number; } -interface ViolationDataResponse extends Array { } - export default function ViolationsTable() { const { data: violationData, @@ -121,7 +119,7 @@ export default function ViolationsTable() { } }, { - accessorKey: 'file', + accessorKey: 'fileName', header: ({ column }) => (
@@ -161,7 +159,7 @@ export default function ViolationsTable() { } }, { - accessorKey: 'violation', + accessorKey: 'violationCount', header: ({ column }) => (
@@ -194,7 +192,7 @@ export default function ViolationsTable() { ), }, { - accessorKey: 'date', + accessorKey: 'latestViolationDate', header: ({ column }) => (