pull/5252/head
Ben Hardill 2025-08-20 19:12:09 +01:00
parent b7cef0bce7
commit 54849e9e62
No known key found for this signature in database
GPG Key ID: 74DD076979ABB1E7
1 changed files with 2 additions and 2 deletions

View File

@ -146,7 +146,7 @@ module.exports = function(RED) {
var pos = 0;
var data = value;
msg.parts.len = node.arraySplt;
const newmsg = RED.utils.cloneMessge(msg)
const newmsg = RED.util.cloneMessage(msg)
for (var i=0; i<count; i++) {
var m = data.slice(pos,pos+node.arraySplt);
if (node.arraySplt === 1) {
@ -155,7 +155,7 @@ module.exports = function(RED) {
RED.util.setMessageProperty(newmsg,node.property,m);
newmsg.parts.index = i;
pos += node.arraySplt;
send(RED.utils.cloneMessage(newmsg));
send(RED.util.cloneMessage(newmsg));
}
done();
}