1
0
mirror of https://github.com/node-red/node-red.git synced 2023-10-10 13:36:53 +02:00

fix type of env values

This commit is contained in:
Hiroyasu Nishiyama 2019-01-29 23:46:56 +09:00
parent 8f6b24e0aa
commit 6937aa5ddd

View File

@ -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;
}
}