1
0
mirror of https://github.com/oceanprotocol/market.git synced 2024-12-02 05:57:29 +01:00

job result fallbacks

This commit is contained in:
Matthias Kretschmann 2020-10-22 17:38:55 +02:00
parent 762e8785c7
commit d75d172c0c
Signed by: m
GPG Key ID: 606EEEF3C479A91F

View File

@ -75,22 +75,30 @@ export default function ComputeDetailsModal({
<>
<ul>
<ListItem>
<a
href={computeJob.algorithmLogUrl}
target="_blank"
rel="noreferrer"
>
View Log
</a>
{computeJob.algorithmLogUrl ? (
<a
href={computeJob.algorithmLogUrl}
target="_blank"
rel="noreferrer"
>
View Log
</a>
) : (
'No logs found'
)}
</ListItem>
{computeJob.resultsUrls?.map((url, i) => (
<ListItem key={shortid.generate()}>
<a href={url} target="_blank" rel="noreferrer">
View Result {i}
</a>
</ListItem>
))}
{computeJob.resultsUrls?.map((url, i) =>
url ? (
<ListItem key={shortid.generate()}>
<a href={url} target="_blank" rel="noreferrer">
View Result {i}
</a>
</ListItem>
) : (
'No results found.'
)
)}
</ul>
</>
))}