diff --git a/judgels-client/src/components/SubmissionDetails/Programming/SubmissionDetails.jsx b/judgels-client/src/components/SubmissionDetails/Programming/SubmissionDetails.jsx index dc95242e8..898e63e33 100644 --- a/judgels-client/src/components/SubmissionDetails/Programming/SubmissionDetails.jsx +++ b/judgels-client/src/components/SubmissionDetails/Programming/SubmissionDetails.jsx @@ -123,6 +123,9 @@ export function SubmissionDetails({
{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 (