From a2b6ce0b4537d453124a46cb688ed9862aad0143 Mon Sep 17 00:00:00 2001 From: Kia Lam Date: Tue, 25 Jul 2023 11:11:46 -0700 Subject: [PATCH] Wait for new label IDs before setting label prompt values. --- awx/ui/src/components/LaunchPrompt/LaunchPrompt.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/awx/ui/src/components/LaunchPrompt/LaunchPrompt.js b/awx/ui/src/components/LaunchPrompt/LaunchPrompt.js index dba9741bf3e3..cf9c886658a6 100644 --- a/awx/ui/src/components/LaunchPrompt/LaunchPrompt.js +++ b/awx/ui/src/components/LaunchPrompt/LaunchPrompt.js @@ -77,7 +77,7 @@ function PromptModalForm({ } if (launchConfig.ask_labels_on_launch) { - const { labelIds } = createNewLabels( + const { labelIds } = await createNewLabels( values.labels, resource.organization );