mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-17 18:12:04 +00:00
fix(core): Use CredentialsOverwrites when testing credentials (#4675)
* fix(cli): use CredentialsOverwrites in credentials testing * fix(editor-ui): do not set credential properties if they have been overwritten
This commit is contained in:
committed by
GitHub
parent
4c423762d6
commit
772ec78349
@@ -231,7 +231,10 @@ export default mixins(showMessage, nodeHelpers).extend({
|
||||
|
||||
if (this.credentialType) {
|
||||
for (const property of this.credentialType.properties) {
|
||||
if (!this.credentialData.hasOwnProperty(property.name)) {
|
||||
if (
|
||||
!this.credentialData.hasOwnProperty(property.name) &&
|
||||
!this.credentialType.__overwrittenProperties?.includes(property.name)
|
||||
) {
|
||||
Vue.set(this.credentialData, property.name, property.default as CredentialInformation);
|
||||
}
|
||||
}
|
||||
@@ -516,7 +519,7 @@ export default mixins(showMessage, nodeHelpers).extend({
|
||||
);
|
||||
}
|
||||
|
||||
// The properties defined on the parent credentials take presidence
|
||||
// The properties defined on the parent credentials take precedence
|
||||
NodeHelpers.mergeNodeProperties(
|
||||
combineProperties,
|
||||
credentialTypeData.properties,
|
||||
|
||||
Reference in New Issue
Block a user