mirror of
https://github.com/node-red/node-red.git
synced 2025-03-01 10:36:34 +00:00
fixed to access last variable with same name
This commit is contained in:
@@ -200,7 +200,7 @@ class Subflow extends Flow {
|
||||
*/
|
||||
getSetting(name) {
|
||||
function lookup(env, name) {
|
||||
for(var i = 0; i < env.length; i++) {
|
||||
for(var i = env.length -1; i >= 0; i--) {
|
||||
var item = env[i];
|
||||
if (item.name === name) {
|
||||
return item;
|
||||
|
Reference in New Issue
Block a user