mirror of
https://github.com/ansible/awx.git
synced 2026-05-07 17:37:37 -02:30
handle null values on inventories pending deletion
Co-authored-by: Jake McDermott <yo@jakemcdermott.me>
This commit is contained in:
@@ -84,9 +84,9 @@ function InventoryListItem({
|
|||||||
</Td>
|
</Td>
|
||||||
<Td key="organization" dataLabel={i18n._(t`Organization`)}>
|
<Td key="organization" dataLabel={i18n._(t`Organization`)}>
|
||||||
<Link
|
<Link
|
||||||
to={`/organizations/${inventory.summary_fields.organization.id}/details`}
|
to={`/organizations/${inventory?.summary_fields?.organization?.id}/details`}
|
||||||
>
|
>
|
||||||
{inventory.summary_fields.organization.name}
|
{inventory?.summary_fields?.organization?.name}
|
||||||
</Link>
|
</Link>
|
||||||
</Td>
|
</Td>
|
||||||
<Td dataLabel={i18n._(t`Groups`)}>{inventory.total_groups}</Td>
|
<Td dataLabel={i18n._(t`Groups`)}>{inventory.total_groups}</Td>
|
||||||
|
|||||||
Reference in New Issue
Block a user