Skip to content

Commit

Permalink
del teachers
Browse files Browse the repository at this point in the history
  • Loading branch information
levil664 committed Jul 12, 2024
1 parent 3570697 commit d097eff
Showing 1 changed file with 1 addition and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ export function StudentList() {
})

const resultsCalculate = useCallback(
() => calculateResults(paginationParams, { invites, teachers: invites, students }),
() => calculateResults(paginationParams, { invites, students }),
[paginationParams, invites, students],
)

Expand All @@ -70,7 +70,6 @@ export function StudentList() {
setQueryPaginationParams as any,
{
invites: invites?.count,
teachers: invites?.count,
students: students?.count,
},
newPage,
Expand Down Expand Up @@ -115,7 +114,6 @@ export function StudentList() {
current: paginationParams.page,
pageSize: paginationParams.pageSize,
total:
Math.ceil((invites?.count ?? 0) / paginationParams.pageSize) * paginationParams.pageSize +
Math.ceil((invites?.count ?? 0) / paginationParams.pageSize) * paginationParams.pageSize +
Math.ceil((students?.count ?? 0) / paginationParams.pageSize) * paginationParams.pageSize,
onChange: (page, pageSize) => {
Expand Down

0 comments on commit d097eff

Please sign in to comment.