@ -339,7 +339,7 @@ export default function CriteriaManage() {
}`;
const res = await apiCaller(endPoint, "GET");
if (!res){
if (!res.data){
setIsEndOnlineClasses(true);
} else {
listNext = res?.data;
@ -288,7 +288,7 @@ export default function AdminHome() {
queryParams.length ? `&${queryParams.join("&")}` : ""
if(!res){
if(!res.data){
concatListSide = res?.data;
@ -166,8 +166,7 @@ export default function DetailGrade() {
!!month?.value ? `&month=${month?.value}` : ""
}&limit=${limitOnline}&offset=${offsetOnlineMore}`;
console.log('res',res);
@ -184,7 +184,7 @@ export default function HeadmasterHome() {
const endPoint = `/report/api_report/teacherByOrganizationId?organization_id=${id}&limit=${limitOnline}&offset=${offsetOnlineMore}`;
@ -197,7 +197,7 @@ export default function TeacherHome() {
`/api_exercise_report/teacher_report_summary?teacher_id=${id}&year=${schoolYear?.value.trim()}&limit=${limitOnline}&offset=${offsetOnlineMore}` +
(queryParams.length > 0 ? `&${queryParams.join("&")}` : "");