Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'app/assets/javascripts/header_search/index.js')
-rw-r--r--app/assets/javascripts/header_search/index.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/app/assets/javascripts/header_search/index.js b/app/assets/javascripts/header_search/index.js
index f6963263725..2bbad5f3f98 100644
--- a/app/assets/javascripts/header_search/index.js
+++ b/app/assets/javascripts/header_search/index.js
@@ -11,12 +11,12 @@ export const initHeaderSearchApp = (search = '') => {
const el = document.getElementById('js-header-search');
const headerEl = document.querySelector('.header-content');
- if (!el && !headerEl) {
+ if (!el || !headerEl) {
return false;
}
const searchContainer = headerEl.querySelector('.global-search-container');
- const newHeader = headerEl.querySelector('.header-search-new');
+ const newHeader = headerEl.querySelector('.header-search');
const { searchPath, issuesPath, mrPath, autocompletePath } = el.dataset;
let { searchContext } = el.dataset;