mirror of
https://github.com/node-red/node-red.git
synced 2025-03-01 10:36:34 +00:00
Fix join node manual mode array
msg.complete was adding an unwanted null to the array (if no payload) Added tests for msg.complete with array and object
This commit is contained in:
@@ -619,10 +619,13 @@ module.exports = function(RED) {
|
||||
} else {
|
||||
if (!isNaN(propertyIndex)) {
|
||||
group.payload[propertyIndex] = property;
|
||||
group.currentCount++;
|
||||
} else {
|
||||
group.payload.push(property);
|
||||
if (property !== undefined) {
|
||||
group.payload.push(property);
|
||||
group.currentCount++;
|
||||
}
|
||||
}
|
||||
group.currentCount++;
|
||||
}
|
||||
// TODO: currently reuse the last received - add option to pick first received
|
||||
group.msg = msg;
|
||||
|
Reference in New Issue
Block a user