mirror of
https://github.com/ansible/awx.git
synced 2026-05-07 09:27:36 -02:30
Fix bug where credential inputs were not filled on edit
This commit is contained in:
@@ -116,7 +116,7 @@ function CredentialEdit({ credential, me }) {
|
|||||||
},
|
},
|
||||||
] = await Promise.all([
|
] = await Promise.all([
|
||||||
CredentialTypesAPI.read({ page_size: 200 }),
|
CredentialTypesAPI.read({ page_size: 200 }),
|
||||||
CredentialsAPI.readInputSources(credId, { page_size: 200 }),
|
CredentialsAPI.readInputSources(credId),
|
||||||
]);
|
]);
|
||||||
const credTypes = data.results;
|
const credTypes = data.results;
|
||||||
if (data.next && data.next.includes('page=2')) {
|
if (data.next && data.next.includes('page=2')) {
|
||||||
|
|||||||
@@ -197,7 +197,7 @@ function CredentialForm({
|
|||||||
description: credential.description || '',
|
description: credential.description || '',
|
||||||
organization: credential?.summary_fields?.organization || null,
|
organization: credential?.summary_fields?.organization || null,
|
||||||
credential_type: credential?.credential_type || '',
|
credential_type: credential?.credential_type || '',
|
||||||
inputs: {},
|
inputs: credential?.inputs || {},
|
||||||
passwordPrompts: {},
|
passwordPrompts: {},
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user