Skip to content

Commit ff8d6e7

Browse files
committed
FE: Fixed schema sort
1 parent 70eeb5f commit ff8d6e7

File tree

1 file changed

+5
-3
lines changed
  • frontend/src/components/Schemas/List

1 file changed

+5
-3
lines changed

frontend/src/components/Schemas/List/List.tsx

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,7 @@ const List: React.FC = () => {
5050
const columns = React.useMemo<ColumnDef<SchemaSubject>[]>(
5151
() => [
5252
{
53+
id: SchemaColumnsToSort.SUBJECT,
5354
header: 'Subject',
5455
accessorKey: 'subject',
5556
// eslint-disable-next-line react/no-unstable-nested-components
@@ -61,10 +62,11 @@ const List: React.FC = () => {
6162
/>
6263
),
6364
},
64-
{ header: 'Id', accessorKey: 'id', size: 120 },
65-
{ header: 'Type', accessorKey: 'schemaType', size: 120 },
66-
{ header: 'Version', accessorKey: 'version', size: 120 },
65+
{ id: SchemaColumnsToSort.ID, header: 'Id', accessorKey: 'id', size: 120 },
66+
{ id: SchemaColumnsToSort.TYPE, header: 'Type', accessorKey: 'schemaType', size: 120 },
67+
{ id: SchemaColumnsToSort.VERSION, header: 'Version', accessorKey: 'version', size: 120 },
6768
{
69+
id: SchemaColumnsToSort.COMPATIBILITY,
6870
header: 'Compatibility',
6971
accessorKey: 'compatibilityLevel',
7072
size: 160,

0 commit comments

Comments
 (0)