From 528052c7d174e067815ca27de4163ac2cb858884 Mon Sep 17 00:00:00 2001 From: Zhenzhi Date: Fri, 29 Mar 2024 18:07:32 +0800 Subject: [PATCH] fixed bug where grading editor could not open --- src/pages/academy/grading/subcomponents/GradingWorkspace.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/pages/academy/grading/subcomponents/GradingWorkspace.tsx b/src/pages/academy/grading/subcomponents/GradingWorkspace.tsx index ee5051e572..f77a230c9c 100644 --- a/src/pages/academy/grading/subcomponents/GradingWorkspace.tsx +++ b/src/pages/academy/grading/subcomponents/GradingWorkspace.tsx @@ -308,12 +308,12 @@ const GradingWorkspace: React.FC = props => { xpAdjustment={grading!.answers[questionId].grade.xpAdjustment} maxXp={grading!.answers[questionId].question.maxXp} studentNames={ - grading![questionId].student.name + grading!.answers[questionId].student.name ? [grading!.answers[questionId].student.name] : grading!.answers[questionId].team!.map(member => member.name) } studentUsernames={ - grading![questionId].student.username + grading!.answers[questionId].student.username ? [grading!.answers[questionId].student.username] : grading!.answers[questionId].team!.map(member => member.username) }