# Possible bug ( UI dashboard switch node or function switch Node)

**URL:** <https://discourse.nodered.org/t/possible-bug-ui-dashboard-switch-node-or-function-switch-node/58043>\
**Category:** General\
**Tags:** node-red-dashboard, function-node\
**Created:** [9 February 2022 18:01 UTC](https://discourse.nodered.org/t/possible-bug-ui-dashboard-switch-node-or-function-switch-node/58043 "2022-02-09T18:01:39Z")\
**Posts on this page:** 1\
**Showing post:** 15

<div class="post-metadata">

**Author:** ![Colin](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/colin/32/17040_2.png) [@Colin](https://discourse.nodered.org/u/Colin)\
**Post date:** [11 February 2022 10:35 UTC](https://discourse.nodered.org/t/possible-bug-ui-dashboard-switch-node-or-function-switch-node/58043/15 "2022-02-11T10:35:16Z")

</div>

@vikingsraven there has been another reported case which looks similar to yours

> [@Msg duplication because of 'Link out' and 'Link in'](https://discourse.nodered.org/t/msg-duplication-because-of-link-out-and-link-in/58127):
>
> Gents, I spent a couple of hour on an unbelievable beharior. I use to introduce many Link out and link in nodes between flows, and even in a single flow for clarifying my flow chart view. My trouble is that, some couple of link out and link in nodes duplicate the messages. This does not occure over all Link nodes, but those ones that give such a behavior run this issue all the time. When I just click on one of them, I clearly see a single discontinuous line between them. When I open hte lin…

I have submitted an issue on github so the developers will see it. Could you subscribe that the issue so you can answer any questions the developers may have, please?

> <https://github.com/node-red/node-red/issues/3433>
>
> \### Current Behavior
> 
> There have been two cases reported on the forum where node…s have been dropped onto the flow and two messages have been received at the output for each one on the input. Looking at the exported flow it can be seen that there are two wires between the two nodes.
> 
> https://discourse.nodered.org/t/possible-bug-ui-dashboard-switch-node-or-function-switch-node/58043
> https://discourse.nodered.org/t/msg-duplication-because-of-link-out-and-link-in/58127
> 
> The example flow below is from the former post, where it can be seen that there are two identical wires with the ui\_switch node.
> 
> When an attempt is made to delete the duplicated wire the first one deletes, but then the second one refuses to be selected. This is possibly just a side effect of having the duplicated wire.
> 
> 
> \### Expected Behavior
> 
> \_No response\_
> 
> \### Steps To Reproduce
> 
> It has not been possible to reproduce consistently, apparently.
> 
> \### Example flow
> 
> 
> \`\`\`
> \[
> {
> "id": "722804950b4b4251",
> "type": "switch",
> "z": "77f64d9d09139432",
> "name": "Mode",
> "property": "payload",
> "propertyType": "msg",
> "rules": \[
> {
> "t": "true"
> },
> {
> "t": "false"
> }
> \],
> "checkall": "true",
> "repair": false,
> "outputs": 2,
> "x": 730,
> "y": 220,
> "wires": \[
> \[\],
> \[\]
> \]
> },
> {
> "id": "e6f5d2c9e6d468c2",
> "type": "debug",
> "z": "77f64d9d09139432",
> "name": "",
> "active": true,
> "tosidebar": true,
> "console": false,
> "tostatus": false,
> "complete": "false",
> "statusVal": "",
> "statusType": "auto",
> "x": 710,
> "y": 180,
> "wires": \[\]
> },
> {
> "id": "aad3e59254f825af",
> "type": "ui\_switch",
> "z": "77f64d9d09139432",
> "name": "",
> "label": "Thermo Enable",
> "tooltip": "",
> "group": "e95113d77e51b515",
> "order": 1,
> "width": 0,
> "height": 0,
> "passthru": true,
> "decouple": "false",
> "topic": "topic",
> "topicType": "msg",
> "style": "",
> "onvalue": "true",
> "onvalueType": "bool",
> "onicon": "fa-power-off fa-2x",
> "oncolor": "green",
> "offvalue": "false",
> "offvalueType": "bool",
> "officon": "fa-power-off fa-2x",
> "offcolor": "grey",
> "animate": true,
> "className": "",
> "x": 420,
> "y": 220,
> "wires": \[
> \[
> "722804950b4b4251",
> "722804950b4b4251",
> "e6f5d2c9e6d468c2"
> \]
> \]
> },
> {
> "id": "e95113d77e51b515",
> "type": "ui\_group",
> "name": "Thermal Mode",
> "tab": "2bf55b350517e8d4",
> "order": 2,
> "disp": true,
> "width": 6,
> "collapse": false,
> "className": ""
> },
> {
> "id": "2bf55b350517e8d4",
> "type": "ui\_tab",
> "name": "PTZ",
> "icon": "camera",
> "order": 1,
> "disabled": false,
> "hidden": false
> }
> \]
> \`\`\`
> 
> \`\`\`
> 
> 
> \### Environment
> 
> These are from the first forum post, the details from the second are not yet known (apart from being nr 2.2.0)
> \- Node-RED version: 2.2.0
> \- Node.js version: 14.19.0
> \- npm version: 6.14.16
> \- Platform/OS: Linux Mint
> \- Browser: ?

---

_[View the full topic](https://discourse.nodered.org/t/possible-bug-ui-dashboard-switch-node-or-function-switch-node/58043)._
