summaryrefslogtreecommitdiff
path: root/app/assets/javascripts/protected_branches
diff options
context:
space:
mode:
authorJacob Schatz <jschatz@gitlab.com>2017-02-03 15:03:57 +0000
committerJacob Schatz <jschatz@gitlab.com>2017-02-03 15:03:57 +0000
commit806b038a44cda37fa7d8ba9afae4b7adb07afe94 (patch)
treef8841e93eb070feae34fa2cc5f61e0efecf88bd0 /app/assets/javascripts/protected_branches
parent52ea505126da19717c9137e6bb301f55965eb6e4 (diff)
parent50d58c14cd2cd1b8fb1bb9e4a7a1091b5af90c04 (diff)
downloadgitlab-ce-806b038a44cda37fa7d8ba9afae4b7adb07afe94.tar.gz
Merge branch 'ref-switcher-perf' into 'master'
Improved ref switcher dropdown performance Closes #18202 See merge request !7239
Diffstat (limited to 'app/assets/javascripts/protected_branches')
-rw-r--r--app/assets/javascripts/protected_branches/protected_branch_dropdown.js.es62
1 files changed, 1 insertions, 1 deletions
diff --git a/app/assets/javascripts/protected_branches/protected_branch_dropdown.js.es6 b/app/assets/javascripts/protected_branches/protected_branch_dropdown.js.es6
index 03f4531abf5..5cf28aa7a73 100644
--- a/app/assets/javascripts/protected_branches/protected_branch_dropdown.js.es6
+++ b/app/assets/javascripts/protected_branches/protected_branch_dropdown.js.es6
@@ -49,7 +49,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();
}
getProtectedBranches(term, callback) {