Skip to content

Commit

Permalink
add filter
Browse files Browse the repository at this point in the history
  • Loading branch information
SKairinos committed Sep 25, 2024
1 parent f907c52 commit 581afed
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/pages/teacherDashboard/classes/ClassTable.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,9 @@ const ClassTable: FC<ClassTableProps> = ({ authUser }) => (
</Typography>
<TablePagination
useLazyListQuery={useLazyListClassesQuery}
filters={
authUser.teacher.is_admin ? undefined : { teacher: authUser.teacher.id }
}
preferCacheValue
>
{classes => (
Expand Down

0 comments on commit 581afed

Please sign in to comment.