mirror of
https://github.com/node-red/node-red.git
synced 2025-12-27 15:34:26 +01:00
Fix config node resolution in packaged subflows when instancied in a subflow
This commit is contained in:
@@ -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]) {
|
||||
|
||||
Reference in New Issue
Block a user