From 1cbd910e5df12ed28cfbac8576b21598b574a729 Mon Sep 17 00:00:00 2001 From: Steve-Mcl Date: Fri, 9 Jun 2023 11:30:21 +0100 Subject: [PATCH] correct declaration of env object/dic/lookup --- packages/node_modules/@node-red/runtime/lib/flows/Subflow.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/node_modules/@node-red/runtime/lib/flows/Subflow.js b/packages/node_modules/@node-red/runtime/lib/flows/Subflow.js index 824b88a28..4bbf3acad 100644 --- a/packages/node_modules/@node-red/runtime/lib/flows/Subflow.js +++ b/packages/node_modules/@node-red/runtime/lib/flows/Subflow.js @@ -119,7 +119,7 @@ class Subflow extends Flow { this.templateCredentials = credentials.get(subflowDef.id) || {}; this.instanceCredentials = credentials.get(id) || {}; - var env = []; + var env = {}; if (this.subflowDef.env) { this.subflowDef.env.forEach(e => { env[e.name] = e;