aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFuwn <[email protected]>2023-08-27 18:55:31 -0700
committerFuwn <[email protected]>2023-08-27 18:55:31 -0700
commit5560f4c8ae599997941a1ed1fb94034dccc420f8 (patch)
tree8f5e068595b9c601c9495dddab721f484132c51b
parentfeat(settings): add rate-limit warning (diff)
downloaddue.moe-5560f4c8ae599997941a1ed1fb94034dccc420f8.tar.xz
due.moe-5560f4c8ae599997941a1ed1fb94034dccc420f8.zip
fix(list): update ui on increment
-rw-r--r--src/lib/List/Due/AnimeList.svelte3
-rw-r--r--src/lib/List/Due/MangaList.svelte3
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}`);