mirror of
https://github.com/node-red/node-red.git
synced 2025-03-01 10:36:34 +00:00
Merge pull request #4960 from GogoVega/fix-4942
Get the env config node from the parent subflow
This commit is contained in:
commit
ffecf86281
@ -113,6 +113,10 @@ async function evaluateEnvProperties(flow, env, credentials) {
|
|||||||
resolve()
|
resolve()
|
||||||
});
|
});
|
||||||
}))
|
}))
|
||||||
|
} else if (type === "conf-type" && /^\${[^}]+}$/.test(value)) {
|
||||||
|
// Get the config node from the parent subflow
|
||||||
|
const name = value.substring(2, value.length - 1);
|
||||||
|
value = flow.getSetting(name);
|
||||||
} else {
|
} else {
|
||||||
try {
|
try {
|
||||||
value = redUtil.evaluateNodeProperty(value, type, {_flow: flow}, null, null);
|
value = redUtil.evaluateNodeProperty(value, type, {_flow: flow}, null, null);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user