diff options
Diffstat (limited to 'app/assets/javascripts/header_search/index.js')
-rw-r--r-- | app/assets/javascripts/header_search/index.js | 4 |
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; |