mirror of
https://github.com/ansible/awx.git
synced 2026-02-20 12:40:06 -03:30
Check for object keys to avoid console error
This commit is contained in:
@@ -428,7 +428,8 @@ export default
|
|||||||
var params = {
|
var params = {
|
||||||
order_by: 'id'
|
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)
|
JobDetailService.getJobPlays(scope.job.id, params)
|
||||||
.success( function(data) {
|
.success( function(data) {
|
||||||
scope.next_plays = data.next;
|
scope.next_plays = data.next;
|
||||||
|
|||||||
Reference in New Issue
Block a user