From 60a91d6b1f238b9d95e86aa1706839945cdb65f3 Mon Sep 17 00:00:00 2001
From: Fuwn <contact@fuwn.me>
Date: Sun, 27 Aug 2023 01:37:15 -0700
Subject: feat(list): no double clean

---
 src/lib/List/Due/MangaList.svelte | 4 ++++
 1 file changed, 4 insertions(+)

(limited to 'src/lib/List/Due/MangaList.svelte')

diff --git a/src/lib/List/Due/MangaList.svelte b/src/lib/List/Due/MangaList.svelte
index 8f30772f..936d310a 100644
--- a/src/lib/List/Due/MangaList.svelte
+++ b/src/lib/List/Due/MangaList.svelte
@@ -20,6 +20,10 @@
 	});
 
 	const cleanMedia = async (media: object[][], displayUnresolved: boolean) => {
+		if (media === undefined) {
+			return [];
+		}
+
 		if ($lastPruneAt == '') {
 			lastPruneAt.set(new Date().getTime().toString());
 		} else {
-- 
cgit v1.2.3

