Skip to content
Snippets Groups Projects
Commit 50d58c14 authored by Phil Hughes's avatar Phil Hughes Committed by Jacob Schatz
Browse files

Fixed protected branches dropdown

parent e95d43df
No related branches found
No related tags found
Loading
Pipeline #
......@@ -48,7 +48,7 @@ class ProtectedBranchDropdown {
onClickCreateWildcard() {
// Refresh the dropdown's data, which ends up calling `getProtectedBranches`
this.$dropdown.data('glDropdown').remote.execute();
this.$dropdown.data('glDropdown').selectRowAtIndex(gon.open_branches.length);
this.$dropdown.data('glDropdown').selectRowAtIndex();
}
getProtectedBranches(term, callback) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment