From: PhiTux Date: Wed, 8 Oct 2025 10:46:12 +0000 (+0200) Subject: fix for endless loading on /read X-Git-Url: http://git.99rst.org/?a=commitdiff_plain;h=7d23abe4bc4b477b084f9c5a0b7de6fbc6e21284;p=DailyTxT.git fix for endless loading on /read --- diff --git a/frontend/src/routes/(authed)/read/+page.svelte b/frontend/src/routes/(authed)/read/+page.svelte index 5c6f566..eb03159 100644 --- a/frontend/src/routes/(authed)/read/+page.svelte +++ b/frontend/src/routes/(authed)/read/+page.svelte @@ -72,8 +72,10 @@ } }); + let tagsInitiallyLoaded = false; $effect(() => { - if ($tagsLoaded) { + if ($tagsLoaded && !tagsInitiallyLoaded) { + tagsInitiallyLoaded = true; loadMonthForReading(); } }); @@ -348,6 +350,8 @@ isLoadingMonthForReading = true; imageSizeCalculated = false; + logs = []; + axios .get(API_URL + '/logs/loadMonthForReading', { params: { @@ -528,7 +532,9 @@
{#if isLoadingMonthForReading} - +
+ Loading... +
{:else} {$t('read.no_entries')} {/if}