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

View file

@ -48,7 +48,7 @@ class ProtectedBranchDropdown {
onClickCreateWildcard() { onClickCreateWildcard() {
// Refresh the dropdown's data, which ends up calling `getProtectedBranches` // Refresh the dropdown's data, which ends up calling `getProtectedBranches`
this.$dropdown.data('glDropdown').remote.execute(); this.$dropdown.data('glDropdown').remote.execute();
this.$dropdown.data('glDropdown').selectRowAtIndex(gon.open_branches.length); this.$dropdown.data('glDropdown').selectRowAtIndex();
} }
getProtectedBranches(term, callback) { getProtectedBranches(term, callback) {