Merge request with deleted target branch still links to the target branch
Summary
When you delete the target branch of a merge request it will still display a link to the target branch. After clicking the link you get a 404.
Steps to reproduce
- Open a merge request
- Delete the target branch using
/:namespace/:project_name/branches
screen - Refresh the merge request screen
Expected behavior
Target branch name is not a link
Actual behavior
404 after clicking the link.
Relevant logs and/or screenshots
/cc @smcgivern