From f2cd9606b70d09aaed7c5d836aed7025c8e16e2d Mon Sep 17 00:00:00 2001 From: Ashar Fuadi Date: Thu, 16 May 2024 22:15:30 +0700 Subject: [PATCH] fix(client): revert accidentally deleted logic on showing correct subtask results --- .../SubmissionDetails/Programming/SubmissionDetails.jsx | 3 +++ 1 file changed, 3 insertions(+) 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 (