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

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)) {