minor
This commit is contained in:
@@ -181,7 +181,7 @@ const ConsolidatedTable = () => {
|
||||
|
||||
const handleSendEmail = async (teacher, teacherData) => {
|
||||
const facultyId = teacherData[0].facultyId; // This assumes all rows for a teacher have the same facultyId
|
||||
|
||||
console.log(facultyId);
|
||||
try {
|
||||
// Fetch email from the backend
|
||||
const response = await axios.get(
|
||||
@@ -325,7 +325,6 @@ const ConsolidatedTable = () => {
|
||||
>
|
||||
{uniqueTeachers.map((teacher, index) => {
|
||||
const teacherData = data.filter((row) => row.Name === teacher);
|
||||
|
||||
return (
|
||||
<div key={index} style={{ marginBottom: "20px" }}>
|
||||
<h2 style={{ textAlign: "center" }}>{teacher}'s Table</h2>
|
||||
|
||||
@@ -63,7 +63,7 @@ router.get("/consolidated-table", async (req, res) => {
|
||||
paperSetting: data.tasks.has("paperSetting") ? "✔" : "",
|
||||
moderation: data.tasks.has("moderation") ? "✔" : "",
|
||||
pwdPaperSetting: data.tasks.has("pwdPaperSetter") ? "✔" : "",
|
||||
key: `${data.facultyId}`
|
||||
facultyId: `${data.facultyId}`
|
||||
}));
|
||||
|
||||
res.status(200).json(tableData);
|
||||
|
||||
Reference in New Issue
Block a user