Fix bug where credential inputs were not filled on edit

This commit is contained in:
mabashian 2021-02-16 18:50:24 -05:00
parent 4cb0366fcf
commit e26015a084
2 changed files with 2 additions and 2 deletions

View File

@ -116,7 +116,7 @@ function CredentialEdit({ credential, me }) {
},
] = await Promise.all([
CredentialTypesAPI.read({ page_size: 200 }),
CredentialsAPI.readInputSources(credId, { page_size: 200 }),
CredentialsAPI.readInputSources(credId),
]);
const credTypes = data.results;
if (data.next && data.next.includes('page=2')) {

View File

@ -197,7 +197,7 @@ function CredentialForm({
description: credential.description || '',
organization: credential?.summary_fields?.organization || null,
credential_type: credential?.credential_type || '',
inputs: {},
inputs: credential?.inputs || {},
passwordPrompts: {},
};