hide loadmore if search is empty

This commit is contained in:
neil 2022-12-22 07:46:10 +08:00
parent 1f77245138
commit 970578414d

View file

@ -145,10 +145,13 @@
} }
if (searchCount) { if (searchCount) {
loadMoreSection.classList.remove('hidden');
noResult.classList.remove('show'); noResult.classList.remove('show');
} else { } else {
loadMoreSection.classList.add('hidden');
noResult.classList.add('show'); noResult.classList.add('show');
} }
} else { } else {
noResult.classList.remove('show'); noResult.classList.remove('show');
sortPackages(); sortPackages();