mirror of
https://github.com/ansible/awx.git
synced 2026-03-28 22:35:08 -02:30
Avoid prop reference error when saving cred
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