From 11f4b6422901aaf1745688806eec904b27a5ee2b Mon Sep 17 00:00:00 2001 From: Kersom <9053044+nixocio@users.noreply.github.com> Date: Fri, 14 Jan 2022 11:19:10 -0500 Subject: [PATCH] Modify how manual subform is displayed for projects (#11509) Modify how manual subform is displayed for projects - Do not rely on label that could be translated, rely on the value. See: https://github.com/ansible/awx/issues/11505 --- awx/ui/src/screens/Project/shared/ProjectForm.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/awx/ui/src/screens/Project/shared/ProjectForm.js b/awx/ui/src/screens/Project/shared/ProjectForm.js index af3b21f52d..91239784c3 100644 --- a/awx/ui/src/screens/Project/shared/ProjectForm.js +++ b/awx/ui/src/screens/Project/shared/ProjectForm.js @@ -224,7 +224,7 @@ function ProjectFormFields({ isDisabled: true, }, ...scmTypeOptions.map(([value, label]) => { - if (label === 'Manual') { + if (value === '') { value = 'manual'; } return {