Skip to content

Commit b56891c

Browse files
authored
Исправить ошибку при пересчёте суммарных баллов (#599)
1 parent d98abfe commit b56891c

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

hwproj.front/src/components/Courses/StudentStats.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -204,7 +204,8 @@ const StudentStats: React.FC<IStudentStatsProps> = (props) => {
204204
solutions
205205
.find(s => s.id === cm.id)?.homeworks!
206206
.find(h => h.id === homework.id)?.tasks!
207-
.flatMap(t => StudentStatsUtils.calculateLastRatedSolution(t.solution || [])?.rating || 0)!
207+
.flatMap(t => StudentStatsUtils.calculateLastRatedSolution(t.solution || [])?.rating || 0)
208+
|| []
208209
)
209210
return testRatings[0]!
210211
.map((_, columnId) => testRatings.map(row => row[columnId]))

0 commit comments

Comments
 (0)