We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 421d5a2 commit 7678399Copy full SHA for 7678399
nodered.js
@@ -1307,7 +1307,7 @@ class CompatibiltyNode extends Node {
1307
this.#events[event].push(handler);
1308
1309
if ("input" === event)
1310
- this.#send ??= msg => super.send(msg);
+ this.#send ??= msg => {if (msg) return super.send(msg);};
1311
1312
return this;
1313
}
@@ -1336,6 +1336,10 @@ class CompatibiltyNode extends Node {
1336
1337
return true;
1338
1339
+ send(msg) { // Node-RED alllows calling send with null message
1340
+ if (msg)
1341
+ return super.send(msg);
1342
+ }
1343
1344
static type = "Node-RED Compatibility";
1345
0 commit comments