mirror of
				https://github.com/node-red/node-red.git
				synced 2025-03-01 10:36:34 +00:00 
			
		
		
		
	Ensure node.credentials exists for nodes with registered creds
Fixes #639
This commit is contained in:
		| @@ -47,6 +47,8 @@ function createNode(node,def) { | |||||||
|     if (creds) { |     if (creds) { | ||||||
|         //console.log("Attaching credentials to ",node.id); |         //console.log("Attaching credentials to ",node.id); | ||||||
|         node.credentials = creds; |         node.credentials = creds; | ||||||
|  |     } else if (credentials.getDefinition(node.type)) { | ||||||
|  |         node.credentials = {}; | ||||||
|     } |     } | ||||||
| } | } | ||||||
|  |  | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user