Added search per exam

This commit is contained in:
Tiago Ribeiro
2024-09-08 23:07:47 +01:00
parent 745eef981f
commit 6e0c4d4361

View File

@@ -42,7 +42,7 @@ interface UserCount {
maxUserCount: number;
}
const searchFilters = [["email"], ["user"], ["userId"]];
const searchFilters = [["email"], ["user"], ["userId"], ["exams"], ["assignment"]];
const SIZE = 16;
@@ -82,6 +82,7 @@ const MasterStatistical = (props: Props) => {
email: userData?.email || "N/A",
userId: assignee,
corporateId: a.corporateId,
exams: a.exams.map((x) => x.id).join(", "),
corporate,
assignment: a.name,
};
@@ -90,7 +91,7 @@ const MasterStatistical = (props: Props) => {
...commonData,
correct: 0,
submitted: false,
// date: moment(),
date: null,
};
}
@@ -208,7 +209,7 @@ const MasterStatistical = (props: Props) => {
cell: (info) => {
const date = info.getValue();
if (date) {
return <span>{date.format("DD/MM/YYYY")}</span>;
return <span>{!!date ? date.format("DD/MM/YYYY") : "N/A"}</span>;
}
return <span>{""}</span>;