fix sorting for match table
This commit is contained in:
@@ -22,8 +22,6 @@ interface ViolationFile {
|
||||
violationCount: number;
|
||||
}
|
||||
|
||||
interface ViolationDataResponse extends Array<ViolationFile> { }
|
||||
|
||||
export default function ViolationsTable() {
|
||||
const {
|
||||
data: violationData,
|
||||
@@ -121,7 +119,7 @@ export default function ViolationsTable() {
|
||||
}
|
||||
},
|
||||
{
|
||||
accessorKey: 'file',
|
||||
accessorKey: 'fileName',
|
||||
header: ({ column }) => (
|
||||
<div className="column start">
|
||||
<span>
|
||||
@@ -161,7 +159,7 @@ export default function ViolationsTable() {
|
||||
}
|
||||
},
|
||||
{
|
||||
accessorKey: 'violation',
|
||||
accessorKey: 'violationCount',
|
||||
header: ({ column }) => (
|
||||
<div className="column">
|
||||
<span>
|
||||
@@ -194,7 +192,7 @@ export default function ViolationsTable() {
|
||||
),
|
||||
},
|
||||
{
|
||||
accessorKey: 'date',
|
||||
accessorKey: 'latestViolationDate',
|
||||
header: ({ column }) => (
|
||||
<div className="column">
|
||||
<span>
|
||||
|
||||
Reference in New Issue
Block a user