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){