Skip to content

Commit 341a9f8

Browse files
authored
Merge pull request #2055 from Marchal-web/fix/beforesend-emit-when-falsy
fix: skip msg-input emit when beforeSend returns falsy value
2 parents c65a6d5 + ca20d87 commit 341a9f8

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

nodes/config/ui_base.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1131,7 +1131,7 @@ module.exports = function (RED) {
11311131
}
11321132

11331133
// emit to all connected UIs
1134-
emit('msg-input:' + widget.id, msg, wNode)
1134+
if (msg) { emit('msg-input:' + widget.id, msg, wNode) }
11351135

11361136
done()
11371137
} catch (err) {

0 commit comments

Comments
 (0)