Fix duplicate item in protected branch/tag dropdowns
What does this MR do?
EE MR, https://gitlab.com/gitlab-org/gitlab-ee/merge_requests/4137
- Fix duplicate item in protected branch/tag dropdowns
- Add some tests
Are there points in the code the reviewer needs to double check?
Steps to reproduce
Visit the project settings -> Repository page and see the "Protected Branches" section
Enter the name of a branch that already appears in the dropdown list
Click the "Create wildcard ..." button
Open the dropdown back up and see the duplicate
Does this MR meet the acceptance criteria?
-
Changelog entry added, if necessary -
Tests added for this feature/bug - Review
-
Has been reviewed by Frontend
-
-
Conform by the merge request performance guides -
Conform by the style guides -
Squashed related commits together -
Internationalization required/considered
What are the relevant issue numbers?
Closes #42157 (closed) https://gitlab.com/gitlab-org/gitlab-ce/issues/41989
Edited by Eric Eastwood