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