Skip to content

Commit

Permalink
Merge pull request #669 from FlowFuse/668-callstack
Browse files Browse the repository at this point in the history
Remove msg.req and msg.res
  • Loading branch information
joepavitt authored Mar 13, 2024
2 parents 67e3c0f + 4a3e4bb commit 863398a
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions nodes/config/ui_base.js
Original file line number Diff line number Diff line change
Expand Up @@ -883,6 +883,10 @@ module.exports = function (RED) {

// add Node-RED listener to the widget for when it's corresponding node receives a msg in Node-RED
widgetNode?.on('input', async function (msg, send, done) {
// clean msg - #668
delete msg.res
delete msg.req

// ensure we have latest instance of the widget's node
const wNode = RED.nodes.getNode(widgetNode.id)
if (!wNode) {
Expand Down

0 comments on commit 863398a

Please sign in to comment.