BigW Consortium Gitlab

Check for filtered-search before constructing filteredsearchmanager

parent 40242003
......@@ -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();
......
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