summaryrefslogtreecommitdiff
path: root/app/assets/javascripts/filtered_search/filtered_search_dropdown_manager.js
diff options
context:
space:
mode:
authorMike Greiling <mgreiling@gitlab.com>2017-08-04 08:07:05 +0000
committerClement Ho <clemmakesapps@gmail.com>2017-08-04 08:07:05 +0000
commit7256626d6023869fac7ffdcfe3d291b76fb19e64 (patch)
tree2234178ec35755eedce1b4251b7bdbe05ad7ff1f /app/assets/javascripts/filtered_search/filtered_search_dropdown_manager.js
parentfe5086c28f4ff979184c3dc9945a599ce7ecf8b2 (diff)
downloadgitlab-ce-7256626d6023869fac7ffdcfe3d291b76fb19e64.tar.gz
Remove monkey-patched Array.prototype.first() and last() methods
Diffstat (limited to 'app/assets/javascripts/filtered_search/filtered_search_dropdown_manager.js')
-rw-r--r--app/assets/javascripts/filtered_search/filtered_search_dropdown_manager.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/assets/javascripts/filtered_search/filtered_search_dropdown_manager.js b/app/assets/javascripts/filtered_search/filtered_search_dropdown_manager.js
index 47cecd5b5f7..dd1c067df87 100644
--- a/app/assets/javascripts/filtered_search/filtered_search_dropdown_manager.js
+++ b/app/assets/javascripts/filtered_search/filtered_search_dropdown_manager.js
@@ -167,7 +167,7 @@ class FilteredSearchDropdownManager {
// Eg. token = 'label:'
const split = lastToken.split(':');
- const dropdownName = split[0].split(' ').last();
+ const dropdownName = _.last(split[0].split(' '));
this.loadDropdown(split.length > 1 ? dropdownName : '');
} else if (lastToken) {
// Token has been initialized into an object because it has a value