Falling back to project.status if the last project sync job was deleted (#12215)

This commit is contained in:
John Westcott IV
2022-05-12 12:22:04 -04:00
committed by GitHub
parent 78660ad0a2
commit cfdba959dd

View File

@@ -195,7 +195,7 @@ function ProjectListItem({
)} )}
</TdBreakWord> </TdBreakWord>
<Td dataLabel={t`Status`}> <Td dataLabel={t`Status`}>
{job && ( {job ? (
<Tooltip <Tooltip
position="top" position="top"
content={generateLastJobTooltip(job)} content={generateLastJobTooltip(job)}
@@ -205,6 +205,14 @@ function ProjectListItem({
<StatusLabel status={job.status} /> <StatusLabel status={job.status} />
</Link> </Link>
</Tooltip> </Tooltip>
) : (
<Tooltip
position="top"
content={t`Unable to load last job update`}
key={project.id}
>
<StatusLabel status={project?.status} />
</Tooltip>
)} )}
</Td> </Td>
<Td dataLabel={t`Type`}> <Td dataLabel={t`Type`}>