diff --git a/awx/ui/src/screens/Job/JobDetail/JobDetail.js b/awx/ui/src/screens/Job/JobDetail/JobDetail.js index 76e8329bf4..8513ca8dcf 100644 --- a/awx/ui/src/screens/Job/JobDetail/JobDetail.js +++ b/awx/ui/src/screens/Job/JobDetail/JobDetail.js @@ -92,6 +92,31 @@ function JobDetail({ job, inventorySourceLabels }) { {item.name} ); + const renderInventoryDetail = () => { + if (job.type !== 'project_update') { + return inventory ? ( + + {inventory.name} + + } + /> + ) : ( + + ); + } + return null; + }; + return ( @@ -159,25 +184,7 @@ function JobDetail({ job, inventorySourceLabels }) { value={jobTypes[job.type]} /> - {inventory ? ( - - {inventory.name} - - } - /> - ) : ( - - )} + {renderInventoryDetail()} {inventory_source && ( <>