fixed toolbar bug where on reload the 'nothing found' page was shown although there were results
This commit is contained in:
parent
0f255a22bf
commit
284b1bd479
@ -182,7 +182,8 @@ window.onload = function () {
|
|||||||
fetchCategories();
|
fetchCategories();
|
||||||
fetchInitialEntries();
|
fetchInitialEntries();
|
||||||
updateSections();
|
updateSections();
|
||||||
if (searchBar.value !== "") {
|
if (searchBar.value !== "" || sortButton.value !== sortButton.querySelector("#default-sort").value
|
||||||
|
|| filterButton.value !== filterButton.querySelector("#default-filter").value) {
|
||||||
fetchQuery(createQuery(), true);
|
fetchQuery(createQuery(), true);
|
||||||
}
|
}
|
||||||
let observer = new IntersectionObserver(() => {
|
let observer = new IntersectionObserver(() => {
|
||||||
|
Loading…
Reference in New Issue
Block a user