diff options
| author | Fuwn <[email protected]> | 2023-08-27 18:55:31 -0700 |
|---|---|---|
| committer | Fuwn <[email protected]> | 2023-08-27 18:55:31 -0700 |
| commit | 5560f4c8ae599997941a1ed1fb94034dccc420f8 (patch) | |
| tree | 8f5e068595b9c601c9495dddab721f484132c51b | |
| parent | feat(settings): add rate-limit warning (diff) | |
| download | due.moe-5560f4c8ae599997941a1ed1fb94034dccc420f8.tar.xz due.moe-5560f4c8ae599997941a1ed1fb94034dccc420f8.zip | |
fix(list): update ui on increment
| -rw-r--r-- | src/lib/List/Due/AnimeList.svelte | 3 | ||||
| -rw-r--r-- | src/lib/List/Due/MangaList.svelte | 3 |
2 files changed, 6 insertions, 0 deletions
diff --git a/src/lib/List/Due/AnimeList.svelte b/src/lib/List/Due/AnimeList.svelte index 8527ed43..a9f347a9 100644 --- a/src/lib/List/Due/AnimeList.svelte +++ b/src/lib/List/Due/AnimeList.svelte @@ -106,6 +106,9 @@ }; const updateMedia = async (id: number, progress: number | undefined) => { + anime.set(''); + animeLastPrune.set('1'); + animeLists = mediaListCollection(user, identity, Type.Anime, $anime, $animeLastPrune); await fetch(`/anilist/increment?id=${id}&progress=${progress! + 1}`); diff --git a/src/lib/List/Due/MangaList.svelte b/src/lib/List/Due/MangaList.svelte index 549c6008..4f7dd595 100644 --- a/src/lib/List/Due/MangaList.svelte +++ b/src/lib/List/Due/MangaList.svelte @@ -88,6 +88,9 @@ }; const updateMedia = async (id: number, progress: number | undefined) => { + manga.set(''); + mangaLastPrune.set('1'); + mangaLists = mediaListCollection(user, identity, Type.Manga, $manga, $mangaLastPrune); await fetch(`/anilist/increment?id=${id}&progress=${progress! + 1}`); |