From d097eff6a0f57f2496f534acd57f5d31fc0c0804 Mon Sep 17 00:00:00 2001 From: lev tarasov <56757711+levil664@users.noreply.github.com> Date: Fri, 12 Jul 2024 16:45:09 +0500 Subject: [PATCH] del teachers --- apps/schools/domains/student/components/studentList/index.tsx | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/apps/schools/domains/student/components/studentList/index.tsx b/apps/schools/domains/student/components/studentList/index.tsx index 81d28345..aa6fdfa5 100644 --- a/apps/schools/domains/student/components/studentList/index.tsx +++ b/apps/schools/domains/student/components/studentList/index.tsx @@ -53,7 +53,7 @@ export function StudentList() { }) const resultsCalculate = useCallback( - () => calculateResults(paginationParams, { invites, teachers: invites, students }), + () => calculateResults(paginationParams, { invites, students }), [paginationParams, invites, students], ) @@ -70,7 +70,6 @@ export function StudentList() { setQueryPaginationParams as any, { invites: invites?.count, - teachers: invites?.count, students: students?.count, }, newPage, @@ -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) => {