Skip to content

Commit 9093638

Browse files
committed
StudentStats: учитывать фильтр студентов для лучших решений
1 parent cd79935 commit 9093638

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -102,10 +102,10 @@ const StudentStats: React.FC<IStudentStatsProps> = (props) => {
102102
const showBestSolutions = isMentor
103103

104104
const bestTaskSolutions = new Map<number, string>()
105-
if (solutions && isMentor) {
105+
if (props.solutions && isMentor) {
106106
Lodash(homeworks)
107107
.flatMap(h => h.tasks!)
108-
.map(t => solutions
108+
.map(t => props.solutions!
109109
.map(s => s.homeworks!
110110
.flatMap(h1 => h1.tasks!)
111111
.find(t1 => t1.id === t.id)?.solution || [])

0 commit comments

Comments
 (0)