mirror of
https://github.com/ansible/awx.git
synced 2026-03-11 14:39:30 -02:30
Smart-status: check for valid id before redirect
This commit is contained in:
@@ -51,7 +51,12 @@ export default [ function() {
|
|||||||
job = sparkline.getCurrentRegionFields(),
|
job = sparkline.getCurrentRegionFields(),
|
||||||
id;
|
id;
|
||||||
id = sparkline.options.userOptions.tooltipValueLookups.jobs[job.offset];
|
id = sparkline.options.userOptions.tooltipValueLookups.jobs[job.offset];
|
||||||
location.href = '/#/jobs/' + id;
|
if(id === undefined){
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
else {
|
||||||
|
location.href = '/#/jobs/' + id;
|
||||||
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
},
|
},
|
||||||
|
|||||||
Reference in New Issue
Block a user