Skip to content

Commit

Permalink
fix: group/debts filter
Browse files Browse the repository at this point in the history
  • Loading branch information
Dragonprod committed Dec 8, 2023
1 parent 1acc516 commit 142862d
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion app/students/columns.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,9 @@ export const columns: ColumnDef<
},
{
accessorKey: "academic_group",
filterFn: (row, id, value) => {
return value.includes(row.getValue(id))
},
header: ({ column }) => (
<DataTableColumnHeader column={column} title="Группа" />
),
Expand Down Expand Up @@ -147,10 +150,12 @@ export const columns: ColumnDef<
},
{
accessorKey: "debts_disciplines",
filterFn: (row, id, value) => {
return value.includes(row.getValue(id))
},
header: ({ column }) => (
<DataTableColumnHeader column={column} title="Задолженности" />
),

cell: ({ row }) => {
return <StudentDebts row={row} />
},
Expand Down

0 comments on commit 142862d

Please sign in to comment.