mirror of
https://github.com/node-red/node-red.git
synced 2023-10-10 13:36:53 +02:00
correct declaration of env object/dic/lookup
This commit is contained in:
parent
b102ef512e
commit
1cbd910e5d
@ -119,7 +119,7 @@ class Subflow extends Flow {
|
|||||||
this.templateCredentials = credentials.get(subflowDef.id) || {};
|
this.templateCredentials = credentials.get(subflowDef.id) || {};
|
||||||
this.instanceCredentials = credentials.get(id) || {};
|
this.instanceCredentials = credentials.get(id) || {};
|
||||||
|
|
||||||
var env = [];
|
var env = {};
|
||||||
if (this.subflowDef.env) {
|
if (this.subflowDef.env) {
|
||||||
this.subflowDef.env.forEach(e => {
|
this.subflowDef.env.forEach(e => {
|
||||||
env[e.name] = e;
|
env[e.name] = e;
|
||||||
|
Loading…
Reference in New Issue
Block a user