diff --git a/awx/ui/client/lib/components/relaunchButton/relaunchButton.component.js b/awx/ui/client/lib/components/relaunchButton/relaunchButton.component.js index 8afa1e2057..1d88abdb8b 100644 --- a/awx/ui/client/lib/components/relaunchButton/relaunchButton.component.js +++ b/awx/ui/client/lib/components/relaunchButton/relaunchButton.component.js @@ -101,8 +101,7 @@ function atRelaunchCtrl ( }; }); } else { - - let launchParams = { + const launchParams = { id: vm.job.id, }; @@ -113,11 +112,11 @@ function atRelaunchCtrl ( } jobObj.postRelaunch(launchParams) - .then((launchRes) => { - if (!$state.includes('jobs')) { - $state.go('jobResult', { id: launchRes.data.id }, { reload: true }); - } - }); + .then((launchRes) => { + if (!$state.includes('jobs')) { + $state.go('jobResult', { id: launchRes.data.id }, { reload: true }); + } + }); } }); };