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
This commit is contained in:
Kersom
2022-01-14 11:19:10 -05:00
committed by GitHub
parent b76029fac3
commit 11f4b64229

View File

@@ -224,7 +224,7 @@ function ProjectFormFields({
isDisabled: true,
},
...scmTypeOptions.map(([value, label]) => {
if (label === 'Manual') {
if (value === '') {
value = 'manual';
}
return {