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

View File

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