mirror of
				https://github.com/node-red/node-red.git
				synced 2025-03-01 10:36:34 +00:00 
			
		
		
		
	Handle credential env var evaluation when no value set
This commit is contained in:
		| @@ -161,14 +161,14 @@ class Flow { | ||||
|             for (let i = 0; i < configNodes.length; i++) { | ||||
|                 const node = this.flow.configs[configNodes[i]] | ||||
|                 if (node.type === 'global-config' && node.env) { | ||||
|                     const nodeEnv = await flowUtil.evaluateEnvProperties(this, node.env, credentials.get(node.id)) | ||||
|                     const nodeEnv = await flowUtil.evaluateEnvProperties(this, node.env, credentials.get(node.id) || {}) | ||||
|                     this._env = { ...this._env, ...nodeEnv } | ||||
|                 } | ||||
|             } | ||||
|         } | ||||
|  | ||||
|         if (this.env) { | ||||
|             this._env = { ...this._env, ...await flowUtil.evaluateEnvProperties(this, this.env, credentials.get(this.id)) } | ||||
|             this._env = { ...this._env, ...await flowUtil.evaluateEnvProperties(this, this.env, credentials.get(this.id) || {}) } | ||||
|         } | ||||
|  | ||||
|         // Initialise the group objects. These must be done in the right order | ||||
|   | ||||
		Reference in New Issue
	
	Block a user