Merge pull request #4544 from GogoVega/fix-creds-convert-node

(convertNode) Do not create the credentials object if there is nothing to export
This commit is contained in:
Nick O'Leary 2024-01-26 13:49:56 +00:00 committed by GitHub
commit 9bd7131914
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -1228,7 +1228,6 @@ RED.nodes = (function() {
}
}
} else if (n.credentials) {
node.credentials = {};
// All other nodes have a well-defined list of possible credentials
for (var cred in n._def.credentials) {
if (n._def.credentials.hasOwnProperty(cred)) {