mirror of
https://github.com/ansible/awx.git
synced 2026-01-11 10:00:01 -03:30
Merge pull request #8683 from jakemcdermott/fix-8605
Avoid prop reference error when saving cred Reviewed-by: https://github.com/apps/softwarefactory-project-zuul
This commit is contained in:
commit
793764283d
@ -43,7 +43,7 @@ function CredentialAdd({ me }) {
|
||||
|
||||
possibleFields.forEach(field => {
|
||||
const input = inputs[field.id];
|
||||
if (input.credential && input.inputs) {
|
||||
if (input?.credential && input?.inputs) {
|
||||
pluginInputs[field.id] = input;
|
||||
} else if (passwordPrompts[field.id]) {
|
||||
nonPluginInputs[field.id] = 'ASK';
|
||||
|
||||
@ -39,7 +39,7 @@ function CredentialEdit({ credential, me }) {
|
||||
|
||||
possibleFields.forEach(field => {
|
||||
const input = inputs[field.id];
|
||||
if (input.credential && input.inputs) {
|
||||
if (input?.credential && input?.inputs) {
|
||||
pluginInputs[field.id] = input;
|
||||
} else if (passwordPrompts[field.id]) {
|
||||
nonPluginInputs[field.id] = 'ASK';
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user