Merge pull request #5113 from node-red/Let-split-report-original-msg-on-complete

Let split node send original msg to complete node
This commit is contained in:
Nick O'Leary
2025-06-06 11:03:28 +01:00
committed by GitHub

View File

@@ -151,10 +151,11 @@ module.exports = function(RED) {
if (node.arraySplt === 1) {
m = m[0];
}
RED.util.setMessageProperty(msg,node.property,m);
msg.parts.index = i;
const newmsg = RED.util.cloneMessage(msg)
RED.util.setMessageProperty(newmsg,node.property,m);
newmsg.parts.index = i;
pos += node.arraySplt;
send(RED.util.cloneMessage(msg));
send(newmsg);
}
done();
}