Skip to content

Commit cb3c64e

Browse files
germanosinVixtir
andauthored
FE: Fixed schema sort (#1346)
Co-authored-by: Pavel Makarichev <[email protected]>
1 parent 70eeb5f commit cb3c64e

File tree

1 file changed

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

1 file changed

+20
-3
lines changed

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

Lines changed: 20 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,26 @@ 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 },
6765
{
66+
id: SchemaColumnsToSort.ID,
67+
header: 'Id',
68+
accessorKey: 'id',
69+
size: 120,
70+
},
71+
{
72+
id: SchemaColumnsToSort.TYPE,
73+
header: 'Type',
74+
accessorKey: 'schemaType',
75+
size: 120,
76+
},
77+
{
78+
id: SchemaColumnsToSort.VERSION,
79+
header: 'Version',
80+
accessorKey: 'version',
81+
size: 120,
82+
},
83+
{
84+
id: SchemaColumnsToSort.COMPATIBILITY,
6885
header: 'Compatibility',
6986
accessorKey: 'compatibilityLevel',
7087
size: 160,

0 commit comments

Comments
 (0)