fixed toolbar bug where on reload the 'nothing found' page was shown although there were results

This commit is contained in:
J-Klinke 2024-07-08 11:42:34 +02:00
parent 0f255a22bf
commit 284b1bd479

View File

@ -182,7 +182,8 @@ window.onload = function () {
fetchCategories();
fetchInitialEntries();
updateSections();
if (searchBar.value !== "") {
if (searchBar.value !== "" || sortButton.value !== sortButton.querySelector("#default-sort").value
|| filterButton.value !== filterButton.querySelector("#default-filter").value) {
fetchQuery(createQuery(), true);
}
let observer = new IntersectionObserver(() => {