File tree Expand file tree Collapse file tree 1 file changed +2
-1
lines changed
src/apps/review/src/pages/reviews/components/AiReviewViewer Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Original file line number Diff line number Diff line change @@ -36,6 +36,7 @@ const AiReviewViewer: FC = () => {
3636 challengeInfo,
3737 } : ChallengeDetailContextModel = useChallengeDetailsContext ( )
3838 const navigate = useAppNavigate ( )
39+ const workflowRunIsFailed = [ AiWorkflowRunStatusEnum . FAILURE ] . includes ( workflowRun ?. status as AiWorkflowRunStatusEnum ) ;
3940
4041 const tabItems : SelectOption [ ] = [
4142 {
@@ -56,7 +57,7 @@ const AiReviewViewer: FC = () => {
5657 label : 'Scorecard' ,
5758 value : 'scorecard' ,
5859 } ,
59- { label : `Attachments (${ totalCount ?? 0 } )` , value : 'attachments' } ,
60+ { label : `Attachments${ workflowRunIsFailed ? '' : ` (${ totalCount ?? 0 } )` } ` , value : 'attachments' } ,
6061 ]
6162 const isFailedRun = useMemo ( ( ) => (
6263 workflowRun && [
You can’t perform that action at this time.
0 commit comments