mirror of
https://github.com/node-red/node-red.git
synced 2023-10-10 13:36:53 +02:00
Ensure inject payload exists
This commit is contained in:
parent
38168a545b
commit
55f1cbf18f
@ -58,7 +58,7 @@ module.exports = function(RED) {
|
|||||||
} else if (this.payloadType == 'none') {
|
} else if (this.payloadType == 'none') {
|
||||||
msg.payload = "";
|
msg.payload = "";
|
||||||
} else {
|
} else {
|
||||||
msg.payload = RED.util.evaluateNodeProperty(this.payload,this.payloadType,this,msg);
|
msg.payload = RED.util.evaluateNodeProperty(this.payload,this.payloadType,this,msg)||"";
|
||||||
}
|
}
|
||||||
this.send(msg);
|
this.send(msg);
|
||||||
msg = null;
|
msg = null;
|
||||||
|
Loading…
Reference in New Issue
Block a user