From ad4ec5c5591d82ae3a18d8da7d1caadfcb22df72 Mon Sep 17 00:00:00 2001
From: Fuwn <contact@fuwn.me>
Date: Fri, 6 Oct 2023 11:39:56 -0700
Subject: feat(template): highlight last fast

---
 src/lib/List/Template/MangaListTemplate.svelte | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

(limited to 'src/lib/List/Template/MangaListTemplate.svelte')

diff --git a/src/lib/List/Template/MangaListTemplate.svelte b/src/lib/List/Template/MangaListTemplate.svelte
index fdfb4134..f2f6cb15 100644
--- a/src/lib/List/Template/MangaListTemplate.svelte
+++ b/src/lib/List/Template/MangaListTemplate.svelte
@@ -110,6 +110,7 @@
 
 		await chapterDatabase.chapters.delete(id);
 		await fetch(`/api/anilist-increment?id=${id}&progress=${(progress || 0) + 1}`).then(() => {
+			lastUpdatedMedia = id;
 			previousMangaList = media;
 			media.find((m) => m.id === id)!.mediaListEntry!.progress = (progress || 0) + 1;
 			mangaLists = mediaListCollection(
@@ -120,7 +121,6 @@
 				$lastPruneTimes.manga,
 				true
 			);
-			lastUpdatedMedia = id;
 			pendingUpdate = null;
 		});
 	};
-- 
cgit v1.2.3

