mirror of
https://github.com/ansible/awx.git
synced 2026-01-11 01:57:35 -03:30
Merge pull request #8722 from jakemcdermott/fix-8695
Handle prompted inventory without value on schedules Reviewed-by: https://github.com/apps/softwarefactory-project-zuul
This commit is contained in:
commit
4cc947d65d
@ -201,15 +201,19 @@ function ScheduleDetail({ schedule, i18n }) {
|
||||
<Detail
|
||||
label={i18n._(t`Inventory`)}
|
||||
value={
|
||||
<Link
|
||||
to={`/inventories/${
|
||||
summary_fields.inventory.kind === 'smart'
|
||||
? 'smart_inventory'
|
||||
: 'inventory'
|
||||
}/${summary_fields.inventory.id}/details`}
|
||||
>
|
||||
{summary_fields.inventory.name}
|
||||
</Link>
|
||||
summary_fields?.inventory ? (
|
||||
<Link
|
||||
to={`/inventories/${
|
||||
summary_fields?.inventory?.kind === 'smart'
|
||||
? 'smart_inventory'
|
||||
: 'inventory'
|
||||
}/${summary_fields?.inventory?.id}/details`}
|
||||
>
|
||||
{summary_fields?.inventory?.name}
|
||||
</Link>
|
||||
) : (
|
||||
' '
|
||||
)
|
||||
}
|
||||
/>
|
||||
)}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user