diff options
author | Luke "Jared" Bennett <lbennett@gitlab.com> | 2017-05-12 20:46:16 +0100 |
---|---|---|
committer | Luke "Jared" Bennett <lbennett@gitlab.com> | 2017-05-12 20:46:16 +0100 |
commit | c47dfc9e56e783ad95690d050d88ec6bf742bd9d (patch) | |
tree | cdf77626665f6045cab875e4aa79c7a52ce4bd1b /app | |
parent | 4024200314144cd7aa0bda35f38817c8b198142a (diff) | |
download | gitlab-ce-c47dfc9e56e783ad95690d050d88ec6bf742bd9d.tar.gz |
Check for filtered-search before constructing filteredsearchmanager
Diffstat (limited to 'app')
-rw-r--r-- | app/assets/javascripts/dispatcher.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/assets/javascripts/dispatcher.js b/app/assets/javascripts/dispatcher.js index 1a791395d6f..70bde243bd9 100644 --- a/app/assets/javascripts/dispatcher.js +++ b/app/assets/javascripts/dispatcher.js @@ -120,7 +120,7 @@ const ShortcutsBlob = require('./shortcuts_blob'); break; case 'projects:merge_requests:index': case 'projects:issues:index': - if (gl.FilteredSearchManager) { + if (gl.FilteredSearchManager && document.querySelector('.filtered-search')) { new gl.FilteredSearchManager(page === 'projects:issues:index' ? 'issues' : 'merge_requests'); } Issuable.init(); |