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) {
loadMoreSection.classList.remove('hidden');
noResult.classList.remove('show');
} else {
loadMoreSection.classList.add('hidden');
noResult.classList.add('show');
}
} else {
noResult.classList.remove('show');
sortPackages();