Skip to content

Commit a384094

Browse files
authored
Merge pull request #1353 from topcoder-platform/PM-3089_failure-run
PM-3089 failure run
2 parents cdd9899 + 7234ac0 commit a384094

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/apps/review/src/pages/reviews/components/AiReviewViewer/AiReviewViewer.tsx

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,9 @@ const AiReviewViewer: FC = () => {
3636
challengeInfo,
3737
}: ChallengeDetailContextModel = useChallengeDetailsContext()
3838
const navigate = useAppNavigate()
39+
const workflowRunIsFailed = [
40+
AiWorkflowRunStatusEnum.FAILURE,
41+
].includes(workflowRun?.status as AiWorkflowRunStatusEnum)
3942

4043
const tabItems: SelectOption[] = [
4144
{
@@ -56,7 +59,7 @@ const AiReviewViewer: FC = () => {
5659
label: 'Scorecard',
5760
value: 'scorecard',
5861
},
59-
{ label: `Attachments (${totalCount ?? 0})`, value: 'attachments' },
62+
{ label: `Attachments${workflowRunIsFailed ? '' : ` (${totalCount ?? 0})`}`, value: 'attachments' },
6063
]
6164
const isFailedRun = useMemo(() => (
6265
workflowRun && [

0 commit comments

Comments
 (0)