Merge pull request #5281 from olivierpelet/master

Fix config node resolution in packaged subflow within subflow
This commit is contained in:
Nick O'Leary
2025-10-09 11:05:12 +01:00
committed by GitHub

View File

@@ -229,7 +229,11 @@ async function createNode(flow,config) {
instanceConfig.env = nodeTypeConstructor.subflow.env.map(nodeProp => {
var nodePropType;
var nodePropValue = config[nodeProp.name];
if (nodeProp.type === "cred") {
if (nodeProp.ui?.type === "conf-types" && /^\${[^}]+}$/.test(nodePropValue)) {
const valName = nodePropValue.substring(2, nodePropValue.length - 1);
nodePropValue = flow.getSetting(valName)
nodePropType = "conf-type";
} else if (nodeProp.type === "cred") {
nodePropType = "cred";
} else {
switch(typeof config[nodeProp.name]) {