From ffaac063d9b8f818fb7b8232b9fadfdc5db3e523 Mon Sep 17 00:00:00 2001 From: Fuwn Date: Thu, 28 Sep 2023 16:30:50 -0700 Subject: refactor(media): filter duplicates at source --- src/lib/List/WatchingAnimeList.svelte | 8 -------- 1 file changed, 8 deletions(-) (limited to 'src/lib/List/WatchingAnimeList.svelte') diff --git a/src/lib/List/WatchingAnimeList.svelte b/src/lib/List/WatchingAnimeList.svelte index b3e54e6d..567f0e6c 100644 --- a/src/lib/List/WatchingAnimeList.svelte +++ b/src/lib/List/WatchingAnimeList.svelte @@ -43,14 +43,6 @@ return difference(a) - difference(b); }); - finalMedia = finalMedia.filter((item, index, array) => { - return ( - array.findIndex((i) => { - return i.id === item.id; - }) === index - ); - }); - if (!endTime) { endTime = performance.now() - startTime; } -- cgit v1.2.3