Avoid prop reference error when saving cred

This commit is contained in:
Jake McDermott 2020-11-25 11:25:11 -05:00
parent be08e0ce69
commit 05ae6df80b
No known key found for this signature in database
GPG Key ID: 0E56ED990CDFCB4F
2 changed files with 2 additions and 2 deletions

View File

@ -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';

View File

@ -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';