Browse Source

bugfix:

when the bookmark list is empty, the script tried eternally to load more bookmarks.
resolved by introducing a check
feature/brute_force_protection
Stephan Richter 3 months ago
parent
commit
c7539dc91c
  1. 4
      frontend/src/routes/bookmark/Index.svelte

4
frontend/src/routes/bookmark/Index.svelte

@ -55,8 +55,8 @@ @@ -55,8 +55,8 @@
bookmarks = Object.values(merged).sort((a, b) => new Date(b.timestamp) - new Date(a.timestamp));
loader.offset += loader.limit;
loader.active = false;
error = false;
onscroll(null);
error = null;
if (Object.keys(raw).length) onscroll(null); // when bookmarks were received, check whether they fill up the page
} else {
error = await resp.html();
}

Loading…
Cancel
Save