File tree Expand file tree Collapse file tree 1 file changed +4
-1
lines changed
src/apps/review/src/pages/reviews/components/AiReviewViewer Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Original file line number Diff line number Diff 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 && [
You can’t perform that action at this time.
0 commit comments