Revert change on WorkflowJobTemplateAdd

Revert removal of `await` on WorkflowJobTemplateAdd

See: https://github.com/ansible/awx/pull/9459
This commit is contained in:
nixocio 2021-03-03 09:54:52 -05:00
parent 3903e88a47
commit 899a5fca0b

View File

@ -29,7 +29,7 @@ function WorkflowJobTemplateAdd() {
const {
data: { id },
} = await WorkflowJobTemplatesAPI.create(templatePayload);
await Promise.all(submitLabels(id, labels, organizationId));
await Promise.all(await submitLabels(id, labels, organizationId));
history.push(`/templates/workflow_job_template/${id}/visualizer`);
} catch (err) {
setFormSubmitError(err);