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

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