Get rid of some casts

This commit is contained in:
schroda
2024-07-11 17:55:00 +02:00
parent bc01a945db
commit 2f60b94a64
5 changed files with 5 additions and 6 deletions

View File

@@ -174,7 +174,7 @@ const useSourceManga = (
let allItems: FetchItemsResult = [];
pages.forEach((page, index) => {
const pageItems = page.data?.fetchSourceManga?.mangas ?? ([] as FetchItemsResult);
const pageItems = page.data?.fetchSourceManga?.mangas ?? [];
const nonLibraryPageItems = pageItems.filter((item) => !hideLibraryEntries || !item.inLibrary);
const uniqueItems = getUniqueMangas([...allItems, ...nonLibraryPageItems]);