Merge pull request #6662 from keithjgrant/5909-jt-launch-prompt-2

JT Launch Prompting (phase 2)

Reviewed-by: https://github.com/apps/softwarefactory-project-zuul
This commit is contained in:
softwarefactory-project-zuul[bot]
2020-04-13 17:04:41 +00:00
committed by GitHub
12 changed files with 718 additions and 70 deletions

View File

@@ -88,8 +88,8 @@ class LaunchButton extends React.Component {
const { history, resource } = this.props;
const jobPromise =
resource.type === 'workflow_job_template'
? WorkflowJobTemplatesAPI.launch(resource.id, params)
: JobTemplatesAPI.launch(resource.id, params);
? WorkflowJobTemplatesAPI.launch(resource.id, params || {})
: JobTemplatesAPI.launch(resource.id, params || {});
const { data: job } = await jobPromise;
history.push(