mirror of
https://github.com/ansible/awx.git
synced 2026-01-16 20:30:46 -03:30
Fix bug where credential inputs were not filled on edit
This commit is contained in:
parent
4cb0366fcf
commit
e26015a084
@ -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')) {
|
||||
|
||||
@ -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: {},
|
||||
};
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user