BigW Consortium Gitlab

Commit 4ec8eb9a by Clement Ho

Fix javascript error for when there are no issues

parent 1bfdad5c
...@@ -3,17 +3,20 @@ ...@@ -3,17 +3,20 @@
(() => { (() => {
class FilteredSearchManager { class FilteredSearchManager {
constructor() { constructor() {
this.tokenizer = gl.FilteredSearchTokenizer;
this.filteredSearchInput = document.querySelector('.filtered-search'); this.filteredSearchInput = document.querySelector('.filtered-search');
this.clearSearchButton = document.querySelector('.clear-search'); this.clearSearchButton = document.querySelector('.clear-search');
this.dropdownManager = new gl.FilteredSearchDropdownManager();
this.bindEvents(); if (this.filteredSearchInput) {
this.loadSearchParamsFromURL(); this.tokenizer = gl.FilteredSearchTokenizer;
this.dropdownManager.setDropdown(); this.dropdownManager = new gl.FilteredSearchDropdownManager();
this.cleanupWrapper = this.cleanup.bind(this); this.bindEvents();
document.addEventListener('page:fetch', this.cleanupWrapper); this.loadSearchParamsFromURL();
this.dropdownManager.setDropdown();
this.cleanupWrapper = this.cleanup.bind(this);
document.addEventListener('page:fetch', this.cleanupWrapper);
}
} }
cleanup() { cleanup() {
......
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