diff --git a/awx/ui/client/features/templates/list-templates.controller.js b/awx/ui/client/features/templates/list-templates.controller.js index e25bdf7de2..f6f9123272 100644 --- a/awx/ui/client/features/templates/list-templates.controller.js +++ b/awx/ui/client/features/templates/list-templates.controller.js @@ -64,7 +64,7 @@ function ListTemplatesController( vm.isInvalid = (template) => { if(isJobTemplate(template)) { - return (template.inventory === null || template.project == null) + return template.project === null || (template.inventory === null && template.ask_inventory_on_launch === false); } else { return false; }