fix sorting for match table

This commit is contained in:
smanylov
2026-04-09 13:50:18 +07:00
parent e152013e2a
commit 77ad126530
+3 -5
View File
@@ -22,8 +22,6 @@ interface ViolationFile {
violationCount: number; violationCount: number;
} }
interface ViolationDataResponse extends Array<ViolationFile> { }
export default function ViolationsTable() { export default function ViolationsTable() {
const { const {
data: violationData, data: violationData,
@@ -121,7 +119,7 @@ export default function ViolationsTable() {
} }
}, },
{ {
accessorKey: 'file', accessorKey: 'fileName',
header: ({ column }) => ( header: ({ column }) => (
<div className="column start"> <div className="column start">
<span> <span>
@@ -161,7 +159,7 @@ export default function ViolationsTable() {
} }
}, },
{ {
accessorKey: 'violation', accessorKey: 'violationCount',
header: ({ column }) => ( header: ({ column }) => (
<div className="column"> <div className="column">
<span> <span>
@@ -194,7 +192,7 @@ export default function ViolationsTable() {
), ),
}, },
{ {
accessorKey: 'date', accessorKey: 'latestViolationDate',
header: ({ column }) => ( header: ({ column }) => (
<div className="column"> <div className="column">
<span> <span>