mirror of
https://github.com/node-red/node-red.git
synced 2023-10-10 13:36:53 +02:00
Support array references in Debug property field
This commit is contained in:
parent
77b13ce9d4
commit
343588b2a0
@ -1,3 +1,9 @@
|
||||
#### xxx: unreleased
|
||||
|
||||
Fixes
|
||||
|
||||
- Support array references in Debug property field
|
||||
|
||||
#### 0.14.1: Maintenance Release
|
||||
|
||||
Fixes
|
||||
|
@ -50,11 +50,8 @@ module.exports = function(RED) {
|
||||
var output = msg[property];
|
||||
if (this.complete !== "false" && typeof this.complete !== "undefined") {
|
||||
property = this.complete;
|
||||
var propertyParts = property.split(".");
|
||||
try {
|
||||
output = propertyParts.reduce(function (obj, i) {
|
||||
return obj[i];
|
||||
}, msg);
|
||||
output = RED.util.getMessageProperty(msg,this.complete);
|
||||
} catch(err) {
|
||||
output = undefined;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user