mirror of
https://github.com/n8n-io/n8n.git
synced 2025-01-12 05:17:28 -08:00
🐛 Fix issue that default values did not get send for credential
testing
This commit is contained in:
parent
d22c0deea4
commit
6a77969cff
|
@ -552,19 +552,11 @@ export default mixins(showMessage, nodeHelpers).extend({
|
|||
(access) => !!access,
|
||||
) as ICredentialNodeAccess[];
|
||||
|
||||
// Save only the none default data
|
||||
const data = NodeHelpers.getNodeParameters(
|
||||
this.credentialType!.properties,
|
||||
this.credentialData as INodeParameters,
|
||||
false,
|
||||
false,
|
||||
);
|
||||
|
||||
const details: ICredentialsDecrypted = {
|
||||
id: this.credentialId,
|
||||
name: this.credentialName,
|
||||
type: this.credentialTypeName!,
|
||||
data: data as unknown as ICredentialDataDecryptedObject,
|
||||
data: this.credentialData,
|
||||
nodesAccess,
|
||||
};
|
||||
|
||||
|
@ -635,6 +627,10 @@ export default mixins(showMessage, nodeHelpers).extend({
|
|||
|
||||
if (this.isCredentialTestable) {
|
||||
this.isTesting = true;
|
||||
|
||||
// Add the full data including defaults for testing
|
||||
credentialDetails.data = this.credentialData;
|
||||
|
||||
await this.testCredential(credentialDetails);
|
||||
this.isTesting = false;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue