I had the same issue. Setting the main branch to default didn't fix it. Eventually I simply removed the pipeline (click the ellipses, remove pipeline, type the name to confirm) and re-created the pipeline. That solved it and now the default branch is displayed in the UI again.