From 5560f4c8ae599997941a1ed1fb94034dccc420f8 Mon Sep 17 00:00:00 2001 From: Fuwn Date: Sun, 27 Aug 2023 18:55:31 -0700 Subject: fix(list): update ui on increment --- src/lib/List/Due/AnimeList.svelte | 3 +++ src/lib/List/Due/MangaList.svelte | 3 +++ 2 files changed, 6 insertions(+) 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}`); -- cgit v1.2.3