Do not create the credentials object if not exported

This commit is contained in:
GogoVega 2024-01-25 15:35:40 +01:00
parent 5b096bfd5e
commit 14811b5aec
No known key found for this signature in database
GPG Key ID: E1E048B63AC5AC2B

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