diff --git a/awx/ui/src/components/JobList/JobListItem.js b/awx/ui/src/components/JobList/JobListItem.js
index 93f398c741..364b4279c0 100644
--- a/awx/ui/src/components/JobList/JobListItem.js
+++ b/awx/ui/src/components/JobList/JobListItem.js
@@ -12,7 +12,12 @@ import getScheduleUrl from 'util/getScheduleUrl';
import { ActionsTd, ActionItem, TdBreakWord } from '../PaginatedTable';
import { LaunchButton, ReLaunchDropDown } from '../LaunchButton';
import StatusLabel from '../StatusLabel';
-import { DetailList, Detail, LaunchedByDetail } from '../DetailList';
+import {
+ DetailList,
+ Detail,
+ DeletedDetail,
+ LaunchedByDetail,
+} from '../DetailList';
import ChipGroup from '../ChipGroup';
import CredentialChip from '../CredentialChip';
import ExecutionEnvironmentDetail from '../ExecutionEnvironmentDetail';
@@ -49,6 +54,7 @@ function JobListItem({
job_template,
labels,
project,
+ schedule,
source_workflow_job,
workflow_job_template,
} = job.summary_fields;
@@ -168,17 +174,18 @@ function JobListItem({
/>
)}
- {job.launch_type === 'scheduled' && (
-
- {job.summary_fields.schedule.name}
-
- }
- />
- )}
+ {job.launch_type === 'scheduled' &&
+ (schedule ? (
+ {schedule.name}
+ }
+ />
+ ) : (
+
+ ))}
{job_template && (
', () => {
expect(wrapper.find('Td[dataLabel="Type"]').length).toBe(1);
});
+ test('should not show schedule detail in expanded view', () => {
+ wrapper = mountWithContexts(
+
+ );
+ expect(wrapper.find('Detail[label="Schedule"] dt').length).toBe(1);
+ });
+
test('should not display EE for canceled jobs', () => {
wrapper = mountWithContexts(