mirror of
https://github.com/n8n-io/n8n.git
synced 2024-11-12 15:44:06 -08:00
🐛 Fix issue with default values in combination with displayOptions
This commit is contained in:
parent
f5991e17db
commit
a41afc8013
|
@ -198,8 +198,7 @@ export default mixins(showMessage, nodeHelpers).extend({
|
||||||
if (this.credentialType) {
|
if (this.credentialType) {
|
||||||
for (const property of this.credentialType.properties) {
|
for (const property of this.credentialType.properties) {
|
||||||
if (!this.credentialData.hasOwnProperty(property.name)) {
|
if (!this.credentialData.hasOwnProperty(property.name)) {
|
||||||
this.credentialData[property.name] =
|
Vue.set(this.credentialData, property.name, property.default as CredentialInformation);
|
||||||
property.default as CredentialInformation;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue