File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed
hwproj.front/src/components/Solutions Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -121,14 +121,15 @@ const StudentSolutionsPage: FC = () => {
121
121
} )
122
122
123
123
const taskSolutionsStats = showOnlyUnrated
124
- ? allTaskSolutionsStats . filter ( x => x . countUnratedSolutions && x . countUnratedSolutions > 0 )
124
+ ? allTaskSolutionsStats . filter ( x => x . taskId == + currentTaskId || x . countUnratedSolutions && x . countUnratedSolutions > 0 )
125
125
: allTaskSolutionsStats
126
126
127
127
const studentSolutionsPreviews =
128
128
taskStudentsSolutionsPreview . map ( x => showOnlyUnrated
129
129
? ( {
130
130
taskId : x . taskId ,
131
- studentSolutionsPreview : x . studentSolutionsPreview . filter ( ( ( _ , i ) => {
131
+ studentSolutionsPreview : x . studentSolutionsPreview . filter ( ( ( data , i ) => {
132
+ if ( data . student . userId === currentStudentId ) return true
132
133
const lastSolution = currentTaskSolutions [ i ] . lastSolution
133
134
return lastSolution && lastSolution . state === SolutionState . NUMBER_0
134
135
} ) )
You can’t perform that action at this time.
0 commit comments