Skip to content
Snippets Groups Projects
Commit 13077d2f authored by sandeepsajan0's avatar sandeepsajan0
Browse files

fix: Submission Filter TypeError

parent af51c678
No related branches found
No related tags found
No related merge requests found
......@@ -33,12 +33,14 @@
// find the matching dropdown
let match = $(`.select2-selection[aria-owns="${selectId}"]`);
// if the dropdown contains a clear class, the filters are active
if ($(match[0]).find('span.select2-selection__clear').length !== 0) {
match[0].classList.add(filterActiveClass);
}
else {
match[0].classList.remove(filterActiveClass);
if (match.length !== 0){
// if the dropdown contains a clear class, the filters are active
if ($(match[0]).find('span.select2-selection__clear').length !== 0) {
match[0].classList.add(filterActiveClass);
}
else {
match[0].classList.remove(filterActiveClass);
}
}
});
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment