Merge pull request #8280 from nixocio/ui_issue_8189

Make ContainerGroupDetails a bit more robust

Reviewed-by: https://github.com/apps/softwarefactory-project-zuul
This commit is contained in:
softwarefactory-project-zuul[bot] 2020-09-30 19:00:25 +00:00 committed by GitHub
commit c7869f0408
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -48,15 +48,17 @@ function ContainerGroupDetails({ instanceGroup, i18n }) {
value={i18n._(t`Container group`)}
dataCy="container-group-type"
/>
<Detail
label={i18n._(t`Credential`)}
value={
<Label variant="outline" color="blue">
{instanceGroup.summary_fields.credential.name}
</Label>
}
dataCy="container-group-credential"
/>
{instanceGroup.summary_fields.credential && (
<Detail
label={i18n._(t`Credential`)}
value={
<Label variant="outline" color="blue">
{instanceGroup.summary_fields.credential?.name}
</Label>
}
dataCy="container-group-credential"
/>
)}
<UserDateDetail
label={i18n._(t`Created`)}
date={instanceGroup.created}