Commit c47dfc9e authored by Luke "Jared" Bennett's avatar Luke "Jared" Bennett

Check for filtered-search before constructing filteredsearchmanager

parent 40242003
...@@ -120,7 +120,7 @@ const ShortcutsBlob = require('./shortcuts_blob'); ...@@ -120,7 +120,7 @@ const ShortcutsBlob = require('./shortcuts_blob');
break; break;
case 'projects:merge_requests:index': case 'projects:merge_requests:index':
case 'projects:issues: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'); new gl.FilteredSearchManager(page === 'projects:issues:index' ? 'issues' : 'merge_requests');
} }
Issuable.init(); Issuable.init();
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment