diff --git a/awx/ui_next/src/components/LaunchButton/LaunchButton.jsx b/awx/ui_next/src/components/LaunchButton/LaunchButton.jsx index 878945f8d8..1d232f0a87 100644 --- a/awx/ui_next/src/components/LaunchButton/LaunchButton.jsx +++ b/awx/ui_next/src/components/LaunchButton/LaunchButton.jsx @@ -71,7 +71,7 @@ class LaunchButton extends React.Component { const { data: launchConfig } = await readLaunch; if (canLaunchWithoutPrompt(launchConfig)) { - this.launchWithParams(null); + this.launchWithParams({}); } else { this.setState({ showLaunchPrompt: true, diff --git a/awx/ui_next/src/components/LaunchButton/LaunchButton.test.jsx b/awx/ui_next/src/components/LaunchButton/LaunchButton.test.jsx index 8db633fd8c..8ca2b3d167 100644 --- a/awx/ui_next/src/components/LaunchButton/LaunchButton.test.jsx +++ b/awx/ui_next/src/components/LaunchButton/LaunchButton.test.jsx @@ -62,7 +62,7 @@ describe('LaunchButton', () => { button.prop('onClick')(); expect(JobTemplatesAPI.readLaunch).toHaveBeenCalledWith(1); await sleep(0); - expect(JobTemplatesAPI.launch).toHaveBeenCalledWith(1, null); + expect(JobTemplatesAPI.launch).toHaveBeenCalledWith(1, {}); expect(history.location.pathname).toEqual('/jobs/9000/output'); }); @@ -99,7 +99,7 @@ describe('LaunchButton', () => { button.prop('onClick')(); expect(WorkflowJobTemplatesAPI.readLaunch).toHaveBeenCalledWith(1); await sleep(0); - expect(WorkflowJobTemplatesAPI.launch).toHaveBeenCalledWith(1, null); + expect(WorkflowJobTemplatesAPI.launch).toHaveBeenCalledWith(1, {}); expect(history.location.pathname).toEqual('/jobs/workflow/9000/output'); });