corrected filter on no results

This commit is contained in:
Manan Jethwani 2021-06-23 14:15:22 +05:30
parent 5cfe34a5c2
commit d88bdd3ebf
1 changed files with 1 additions and 0 deletions

View File

@ -126,6 +126,7 @@
spanTag.getElementsByTagName('a')[0].onclick = (event) => { spanTag.getElementsByTagName('a')[0].onclick = (event) => {
event.preventDefault(); event.preventDefault();
window.history.pushState({}, null, `${window.location.href.split('?')[0]}?lang=`); window.history.pushState({}, null, `${window.location.href.split('?')[0]}?lang=`);
setCookie(filterCookieName, 'lang=');
resetAndFilter(); resetAndFilter();
filterTypes.forEach(key => {document.getElementsByName(key)[0].value = params.get(key) || ''}); filterTypes.forEach(key => {document.getElementsByName(key)[0].value = params.get(key) || ''});
}; };