mirror of
				https://github.com/node-red/node-red.git
				synced 2025-03-01 10:36:34 +00:00 
			
		
		
		
	fix type of env values
This commit is contained in:
		| @@ -240,6 +240,15 @@ class Subflow extends Flow { | ||||
|             else { | ||||
|                 var val = lookupFlow0(flow, name); | ||||
|                 if (val) { | ||||
|                     if ((typeof val === "str) && (val.type" !== "str")) { | ||||
|                         try { | ||||
|                             return redUtil.evaluateNodeProperty(val.value, val.type, null, null, null); | ||||
|                         } | ||||
|                         catch (e) { | ||||
|                             console.log(e); | ||||
|                             return undefined; | ||||
|                         } | ||||
|                     } | ||||
|                     return val.value; | ||||
|                 } | ||||
|             } | ||||
|   | ||||
		Reference in New Issue
	
	Block a user