### 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: ?