File tree Expand file tree Collapse file tree 1 file changed +9
-5
lines changed
Expand file tree Collapse file tree 1 file changed +9
-5
lines changed Original file line number Diff line number Diff line change @@ -24,6 +24,14 @@ export interface ResultsPageCoprDetailsProps {
2424export const ResultsPageCoprDetails : React . FC < ResultsPageCoprDetailsProps > = ( {
2525 data,
2626} ) => {
27+ const buildLogsLink = data . build_logs_url ? (
28+ < a href = { data . build_logs_url } rel = "noreferrer" target = { "_blank" } >
29+ Logs
30+ </ a >
31+ ) : (
32+ "Logs not available"
33+ ) ;
34+
2735 return (
2836 < DescriptionList
2937 columnModifier = { {
@@ -45,11 +53,7 @@ export const ResultsPageCoprDetails: React.FC<ResultsPageCoprDetailsProps> = ({
4553 status = { data . status }
4654 link = { data . web_url }
4755 />
48- (
49- < a href = { data . build_logs_url } rel = "noreferrer" target = { "_blank" } >
50- Logs
51- </ a >
52- )
56+ ({ buildLogsLink } )
5357 </ DescriptionListDescription >
5458 </ DescriptionListGroup >
5559 < DescriptionListGroup >
You can’t perform that action at this time.
0 commit comments