That dotted line through R6 is a ratsnest, ie you forced a connection in another view.
If you look at R6 in your SCH the ends are numbered, so probably you didn’t know that and simply connected any end in BB view.
The best way to fix it is go to SCH and delete minus R6, then bring another new resistor in and connect it, and then trust the ratsnests in the other view to connect it.