mirror of
https://github.com/ansible/awx.git
synced 2026-05-10 10:57:35 -02: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:
@@ -43,7 +43,7 @@ function CredentialAdd({ me }) {
|
|||||||
|
|
||||||
possibleFields.forEach(field => {
|
possibleFields.forEach(field => {
|
||||||
const input = inputs[field.id];
|
const input = inputs[field.id];
|
||||||
if (input.credential && input.inputs) {
|
if (input?.credential && input?.inputs) {
|
||||||
pluginInputs[field.id] = input;
|
pluginInputs[field.id] = input;
|
||||||
} else if (passwordPrompts[field.id]) {
|
} else if (passwordPrompts[field.id]) {
|
||||||
nonPluginInputs[field.id] = 'ASK';
|
nonPluginInputs[field.id] = 'ASK';
|
||||||
|
|||||||
@@ -39,7 +39,7 @@ function CredentialEdit({ credential, me }) {
|
|||||||
|
|
||||||
possibleFields.forEach(field => {
|
possibleFields.forEach(field => {
|
||||||
const input = inputs[field.id];
|
const input = inputs[field.id];
|
||||||
if (input.credential && input.inputs) {
|
if (input?.credential && input?.inputs) {
|
||||||
pluginInputs[field.id] = input;
|
pluginInputs[field.id] = input;
|
||||||
} else if (passwordPrompts[field.id]) {
|
} else if (passwordPrompts[field.id]) {
|
||||||
nonPluginInputs[field.id] = 'ASK';
|
nonPluginInputs[field.id] = 'ASK';
|
||||||
|
|||||||
Reference in New Issue
Block a user