From 13e715aeb92b263fae8517e508779eac0d072e78 Mon Sep 17 00:00:00 2001 From: Jake McDermott Date: Mon, 19 Nov 2018 12:20:42 -0500 Subject: [PATCH] handle null inventory value on workflow launch --- awx/ui/client/src/templates/prompt/prompt.service.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/awx/ui/client/src/templates/prompt/prompt.service.js b/awx/ui/client/src/templates/prompt/prompt.service.js index 30b45412d3..150fd994dd 100644 --- a/awx/ui/client/src/templates/prompt/prompt.service.js +++ b/awx/ui/client/src/templates/prompt/prompt.service.js @@ -151,7 +151,7 @@ function PromptService (Empty, $filter) { if (promptData.launchConf.ask_verbosity_on_launch && _.has(promptData, 'prompts.verbosity.value.value')) { launchData.verbosity = promptData.prompts.verbosity.value.value; } - if (promptData.launchConf.ask_inventory_on_launch && !Empty(promptData.prompts.inventory.value.id)){ + if (promptData.launchConf.ask_inventory_on_launch && _.has(promptData, 'prompts.inventory.value.id')) { launchData.inventory_id = promptData.prompts.inventory.value.id; } if (promptData.launchConf.ask_credential_on_launch){