@node-red/util 3.1.0-beta.3 → 3.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/util.js +3 -5
- package/package.json +1 -1
package/lib/util.js
CHANGED
|
@@ -526,7 +526,7 @@ function setObjectProperty(msg,prop,value,createMissing) {
|
|
|
526
526
|
return true;
|
|
527
527
|
}
|
|
528
528
|
|
|
529
|
-
|
|
529
|
+
/**
|
|
530
530
|
* Get value of environment variable.
|
|
531
531
|
* @param {Node} node - accessing node
|
|
532
532
|
* @param {String} name - name of variable
|
|
@@ -548,11 +548,9 @@ function getSetting(node, name, flow_) {
|
|
|
548
548
|
if (flow) {
|
|
549
549
|
if (node && node.g) {
|
|
550
550
|
const group = flow.getGroupNode(node.g);
|
|
551
|
-
|
|
552
|
-
|
|
553
|
-
return result.val;
|
|
551
|
+
if (group) {
|
|
552
|
+
return group.getSetting(name)
|
|
554
553
|
}
|
|
555
|
-
name = newName;
|
|
556
554
|
}
|
|
557
555
|
return flow.getSetting(name);
|
|
558
556
|
}
|