From f88e9cfec1f7319c160862ece98dca8a343bc79c Mon Sep 17 00:00:00 2001 From: Jared Tabor Date: Tue, 12 Jul 2016 15:44:13 -0700 Subject: [PATCH] Check for object keys to avoid console error --- awx/ui/client/src/job-detail/job-detail.controller.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/awx/ui/client/src/job-detail/job-detail.controller.js b/awx/ui/client/src/job-detail/job-detail.controller.js index 3f6e8f7209..acb473b088 100644 --- a/awx/ui/client/src/job-detail/job-detail.controller.js +++ b/awx/ui/client/src/job-detail/job-detail.controller.js @@ -428,7 +428,8 @@ export default var params = { order_by: 'id' }; - if (scope.job.summary_fields.unified_job_template.unified_job_type === 'job'){ + + if (scope.job && scope.job.summary_fields && scope.job.summary_fields.unified_job_template && scope.job.summary_fields.unified_job_template.unified_job_type === 'job'){ JobDetailService.getJobPlays(scope.job.id, params) .success( function(data) { scope.next_plays = data.next;