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:
parent
8f6b24e0aa
commit
6937aa5ddd
@ -240,6 +240,15 @@ class Subflow extends Flow {
|
|||||||
else {
|
else {
|
||||||
var val = lookupFlow0(flow, name);
|
var val = lookupFlow0(flow, name);
|
||||||
if (val) {
|
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;
|
return val.value;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user