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
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

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