Fixed protected branches dropdown

This commit is contained in:
Phil Hughes 2016-11-21 17:45:27 +00:00 committed by Jacob Schatz
parent e95d43dfc5
commit 50d58c14cd
1 changed files with 1 additions and 1 deletions

View File

@ -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) {