too enthusiastic clearing up property

reverted
This commit is contained in:
Dave Conway-Jones 2023-10-18 13:51:40 +01:00
parent 9fd929ac1e
commit 5fda57c730
No known key found for this signature in database
GPG Key ID: 1DDB0E91A28C2643

View File

@ -74,7 +74,6 @@ module.exports = function(RED) {
this.on("input", function(msg, send, done) {
var value = RED.util.getMessageProperty(msg,node.property);
if (value !== undefined) {
RED.util.setMessageProperty(msg,node.property,undefined);
if (msg.hasOwnProperty("parts")) { msg.parts = { parts:msg.parts }; } // push existing parts to a stack
else { msg.parts = {}; }
msg.parts.id = RED.util.generateId(); // generate a random id