mirror of
https://github.com/bunkerity/bunkerweb
synced 2026-05-24 09:28:37 +00:00
handle no report table error on script
This commit is contained in:
parent
e9d36fe08d
commit
e8163a8409
1 changed files with 5 additions and 1 deletions
|
|
@ -1,7 +1,6 @@
|
|||
class Filter {
|
||||
constructor(prefix = "reports") {
|
||||
this.prefix = prefix;
|
||||
this.container = document.querySelector(`[data-${this.prefix}-filter]`);
|
||||
this.keyInp = document.querySelector("input#keyword");
|
||||
this.methodValue = "all";
|
||||
this.statusValue = "all";
|
||||
|
|
@ -11,6 +10,11 @@ class Filter {
|
|||
}
|
||||
|
||||
initHandler() {
|
||||
this.container =
|
||||
document.querySelector(`[data-${this.prefix}-filter]`) || null;
|
||||
|
||||
if (!this.container) return;
|
||||
|
||||
//METHOD HANDLER
|
||||
this.container.addEventListener("click", (e) => {
|
||||
try {
|
||||
|
|
|
|||
Loading…
Reference in a new issue