diff options
| author | Fuwn <[email protected]> | 2026-05-22 06:41:33 +0000 |
|---|---|---|
| committer | Fuwn <[email protected]> | 2026-05-22 06:41:33 +0000 |
| commit | 07e6fb4cad540489d44dbd322337d5929eea6b6e (patch) | |
| tree | 7d86e6f772b93a33de01c770dcaefb31d0583fb5 /src/lib/List/Anime | |
| parent | fix(settings): send JSON Content-Type on configuration PUTs (diff) | |
| download | due.moe-main.tar.xz due.moe-main.zip | |
Before DueAnimeList/UpcomingAnimeList's onMount assigns the promise,
{#await undefined} fell through to {:then media=undefined}, which
cleanMedia turned into an empty array and the list rendered "No anime
to display". The auto-snapshot then captured [] into previousAnimeList,
making every subsequent pending state skip the skeleton. Gate the await
on animeLists being defined so the placeholder shows until the fetch
actually starts.
Diffstat (limited to 'src/lib/List/Anime')
| -rw-r--r-- | src/lib/List/Anime/AnimeListTemplate.svelte | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/lib/List/Anime/AnimeListTemplate.svelte b/src/lib/List/Anime/AnimeListTemplate.svelte index 5bc46e5c..538889b4 100644 --- a/src/lib/List/Anime/AnimeListTemplate.svelte +++ b/src/lib/List/Anime/AnimeListTemplate.svelte @@ -58,6 +58,8 @@ onMount(async () => { {#if !$subsPlease && !dummy} <PlaceholderList count={lastListSize} {title} /> +{:else if !animeLists} + <PlaceholderList count={lastListSize} {title} /> {:else} {#await animeLists} {#if previousAnimeList} |