mirror of
				https://github.com/node-red/node-red.git
				synced 2025-03-01 10:36:34 +00:00 
			
		
		
		
	Handle just-copied-but-not-deployed node with credentials in editor
Fixes #3090
This commit is contained in:
		@@ -407,8 +407,10 @@ RED.editor = (function() {
 | 
			
		||||
     */
 | 
			
		||||
    function updateNodeCredentials(node, credDefinition, prefix) {
 | 
			
		||||
        var changed = false;
 | 
			
		||||
        if(!node.credentials) {
 | 
			
		||||
        if (!node.credentials) {
 | 
			
		||||
            node.credentials = {_:{}};
 | 
			
		||||
        } else if (!node.credentials._) {
 | 
			
		||||
            node.credentials._ = {};
 | 
			
		||||
        }
 | 
			
		||||
 | 
			
		||||
        for (var cred in credDefinition) {
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user