Skip to content

Commit

Permalink
fix(client): revert accidentally deleted logic on showing correct sub…
Browse files Browse the repository at this point in the history
…task results
  • Loading branch information
fushar committed May 16, 2024
1 parent 32303ef commit f2cd960
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -123,6 +123,9 @@ export function SubmissionDetails({
<tbody>
{latestGrading.details.testDataResults.map(testGroupResult =>
testGroupResult.testCaseResults.map((testCaseResult, testCaseIdx) => {
if (testCaseResult.subtaskIds.indexOf(subtaskResult.id) < 0) {
return null;
}
const testCaseId = `${testGroupResult.id}_${testCaseIdx + 1}`;
return (
<tr key={testCaseId}>
Expand Down

0 comments on commit f2cd960

Please sign in to comment.