Skip to content
Snippets Groups Projects

Improved ref switcher dropdown performance

Merged Phil Hughes requested to merge ref-switcher-perf into master
Files
2
@@ -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(0);
this.$dropdown.data('glDropdown').selectRowAtIndex(gon.open_branches.length);
}
getProtectedBranches(term, callback) {
Loading