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