FlowFuse / FlowFuse/node-red-dashboard
Radio Group node remembers items from previous msg being passed thru it
- Dominant language
- HTML
- Stars
- 355
- Forks
- 82
- Avg merge
- 4d 23h
- Merged PRs (30d)
- 24
Description
BUG - reproducible flow attached
Node-RED v3.1.0
node.js v18.18.0
I have a Radio Group node that sets a flow variable and a Flow counter. In addition an inject sends a blank msg.payload and two other filled in msg variables. The ides is if the inject is sent in, it will clear out the flow variables which it does, but if you use the dashboard and select an option, teh msg that leaves teh Radio group node contains information from the msg that the inject send.
1) import the flow and deploy.
2) go to the dashboard (yourIp:1880/dashboard/foo)
3) choose one of the options
4) go back to the editor and look at the debug and flow variable in the sidebar.
5) click the inject and look at the debug and the flow variable
6) now go back to the dashboard and choose an option
7) return to the editor and look at the debug.
at this point you will see that the msg contains data put into the msg by the inject button. It looks like the Radio Group node is not creating a fresh msg.
`
[{"id":"c191616f6c766429","type":"debug","z":"0ac0ad998f01a929","name":"debug 503","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"true","targetType":"full","statusVal":"","statusType":"auto","x":1190,"y":240,"wires":[]},{"id":"59ea950022743f34","type":"ui-radio-group","z":"0ac0ad998f01a929","group":"f615be974b948143","name":"","label":"Select Option:","order":0,"width":0,"height":0,"columns":1,"passthru":true,"options":[{"label":"count","value":"count","type":"str"},{"label":"average","value":"avg","type":"str"},{"label":"other","value":"other","type":"str"}],"payload":"","topic":"topic","topicType":"msg","className":"","x":480,"y":180,"wires":[["b5831e419eb3a9f4","fb9edfbb4bf73c28"]]},{"id":"bdcbf61c211429b4","type":"debug","z":"0ac0ad998f01a929","name":"debug 504","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"true","targetType":"full","statusVal":"","statusType":"auto","x":730,"y":240,"wires":[]},{"id":"b5831e419eb3a9f4","type":"change","z":"0ac0ad998f01a929","name":"","rules":[{"t":"set","p":"query.option","pt":"flow","to":"payload","tot":"msg"}],"action":"","property":"","from":"","to":"","reg":false,"x":720,"y":180,"wires":[["bdcbf61c211429b4","d1aa080a8ea45dc6"]]},{"id":"bc8135d53ab8c248","type":"inject","z":"0ac0ad998f01a929","name":"","props":[{"p":"payload"},{"p":"reset","v":"reset","vt":"str"},{"p":"fubar","v":"this shouldn't be here","vt":"str"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","payload":"","payloadType":"str","x":130,"y":180,"wires":[["3c0d34ccb0df1c23"]]},{"id":"abb8a71464e1a090","type":"change","z":"0ac0ad998f01a929","name":"incriment count","rules":[{"t":"set","p":"count","pt":"flow","to":"$flowContext(\"count\") + 1","tot":"jsonata"},{"t":"set","p":"payload","pt":"msg","to":"count","tot":"flow"}],"action":"","property":"","from":"","to":"","reg":false,"x":1180,"y":180,"wires":[["c191616f6c766429"]]},{"id":"3c0d34ccb0df1c23","type":"change","z":"0ac0ad998f01a929","name":"","rules":[{"t":"set","p":"count","pt":"flow","to":"0","tot":"num"}],"action":"","property":"","from":"","to":"","reg":false,"x":280,"y":180,"wires":[["59ea950022743f34"]]},{"id":"d1aa080a8ea45dc6","type":"switch","z":"0ac0ad998f01a929","name":"","property":"reset","propertyType":"msg","rules":[{"t":"neq","v":"reset","vt":"str"}],"checkall":"true","repair":false,"outputs":1,"x":950,"y":180,"wires":[["abb8a71464e1a090","8174fdd69aeb04ac"]]},{"id":"fb9edfbb4bf73c28","type":"debug","z":"0ac0ad998f01a929","name":"debug 505","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"true","targetType":"full","statusVal":"","statusType":"auto","x":490,"y":240,"wires":[]},{"id":"8174fdd69aeb04ac","type":"debug","z":"0ac0ad998f01a929","name":"debug 506","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"true","targetType":"full","statusVal":"","statusType":"auto","x":970,"y":240,"wires":[]},{"id":"f615be974b948143","type":"ui-group","name":"Group Name","page":"c7a5248d064c1814","width":"6","height":"1","order":-1,"disp":true},{"id":"c7a5248d064c1814","type":"ui-page","name":"Graph","ui":"6078b1ec5265b8ea","path":"/foo","layout":"grid","theme":"6ef7e0662cef14ae","order":-1},{"id":"6078b1ec5265b8ea","type":"ui-base","name":"My Graph","path":"/dashboard"},{"id":"6ef7e0662cef14ae","type":"ui-theme","name":"Theme Name default","colors":{"surface":"#ffffff","primary":"#0094ce","bgPage":"#eeeeee","groupBg":"#ffffff","groupOutline":"#cccccc"}}]
`
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.