Fix config node resolution in packaged subflows when instancied in a subflow

This commit is contained in:
olivierpelet
2025-08-13 15:22:47 +02:00
committed by GitHub
parent 9bf42037b5
commit d58b802160

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]) {