mirror of
https://github.com/node-red/node-red.git
synced 2025-03-01 10:36:34 +00:00
fix exec missing addpayload,
improve switch null test (to include null object) check mqtt has payload before sending
This commit is contained in:
@@ -23,6 +23,7 @@ module.exports = function(RED) {
|
||||
function ExecNode(n) {
|
||||
RED.nodes.createNode(this,n);
|
||||
this.cmd = (n.command || "").trim();
|
||||
if (n.addpay == undefined) { n.addpay = true; }
|
||||
this.addpay = n.addpay;
|
||||
this.append = (n.append || "").trim();
|
||||
this.useSpawn = n.useSpawn;
|
||||
|
Reference in New Issue
Block a user