summaryrefslogtreecommitdiff
path: root/app/assets/javascripts/pages/search
diff options
context:
space:
mode:
authorKushal Pandya <kushal@gitlab.com>2018-02-05 00:54:40 +0530
committerKushal Pandya <kushal@gitlab.com>2018-02-07 14:20:58 +0530
commita657108906d7f966fd6457f050bb69d306014a8e (patch)
treedf2b46b44ffe86ae1099d928e375123b7e860a36 /app/assets/javascripts/pages/search
parent0ea146e6d2d0a84d9ff38c03c07c482806ffc920 (diff)
downloadgitlab-ce-a657108906d7f966fd6457f050bb69d306014a8e.tar.gz
Update class initialization syntax
Diffstat (limited to 'app/assets/javascripts/pages/search')
-rw-r--r--app/assets/javascripts/pages/search/init_filtered_search.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/app/assets/javascripts/pages/search/init_filtered_search.js b/app/assets/javascripts/pages/search/init_filtered_search.js
index 44853636aea..250f9d992ab 100644
--- a/app/assets/javascripts/pages/search/init_filtered_search.js
+++ b/app/assets/javascripts/pages/search/init_filtered_search.js
@@ -1,7 +1,7 @@
-export default (page) => {
+export default ({ page }) => {
const filteredSearchEnabled = gl.FilteredSearchManager && document.querySelector('.filtered-search');
if (filteredSearchEnabled) {
- const filteredSearchManager = new gl.FilteredSearchManager(page);
+ const filteredSearchManager = new gl.FilteredSearchManager({ page });
filteredSearchManager.setup();
}
};