From ab6e650e9c0e3b1d50739b852c469957aabaa40b Mon Sep 17 00:00:00 2001 From: nixocio Date: Mon, 20 Dec 2021 16:28:36 -0500 Subject: [PATCH] Fix relaunch of jobs Events were passed to `handleRelaunch` and those events structure were not parseable to JSON - breaking the relaunch of jobs. React 17 changes made this bug visible. Also, remove withRouter from LaunchButton. See: https://github.com/ansible/awx/issues/11452 --- awx/ui/src/components/JobList/JobListItem.js | 2 +- awx/ui/src/components/LaunchButton/LaunchButton.js | 7 ++++--- awx/ui/src/screens/Job/JobDetail/JobDetail.js | 2 +- awx/ui/src/screens/Job/JobOutput/shared/OutputToolbar.js | 2 +- 4 files changed, 7 insertions(+), 6 deletions(-) diff --git a/awx/ui/src/components/JobList/JobListItem.js b/awx/ui/src/components/JobList/JobListItem.js index 8dbbc0b911..4cdb215790 100644 --- a/awx/ui/src/components/JobList/JobListItem.js +++ b/awx/ui/src/components/JobList/JobListItem.js @@ -135,7 +135,7 @@ function JobListItem({