From c7539dc91cf14757bac614c297018cb5de7207d3 Mon Sep 17 00:00:00 2001 From: Stephan Richter Date: Tue, 12 Aug 2025 12:33:13 +0200 Subject: [PATCH] bugfix: when the bookmark list is empty, the script tried eternally to load more bookmarks. resolved by introducing a check --- frontend/src/routes/bookmark/Index.svelte | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/frontend/src/routes/bookmark/Index.svelte b/frontend/src/routes/bookmark/Index.svelte index 2686055..de575c0 100644 --- a/frontend/src/routes/bookmark/Index.svelte +++ b/frontend/src/routes/bookmark/Index.svelte @@ -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(); }