This just started happening today. I have team #1 as both my attack and defense team. When I go into raids, it shows the correct defense team, but as soon as I find an opponent, it switches to team #2. If I then edit that team, it switches back to team #2 as soon as I close the editing screen. It plays with team #2 no matter which team I selected in editing.
For now I can work around this by changing team #2 to be identical to team #1, but this is costing me the functionality of a team slot.
Is this happening to anyone else?