Load only category mangas that are in the library

This commit is contained in:
schroda
2023-10-19 21:01:21 +02:00
parent 2297f36efb
commit b6382bb33a
2 changed files with 15 additions and 8 deletions

View File

@@ -84,7 +84,7 @@ export default function Library() {
error: mangaError,
loading: mangaLoading,
} = requestManager.useGetCategoryMangas(activeTab?.id, { skip: !activeTab, nextFetchPolicy: 'cache-only' });
const mangas = categoryMangaResponse?.category.mangas.nodes ?? [];
const mangas = categoryMangaResponse?.mangas.nodes ?? [];
const { setTitle, setAction } = useContext(NavbarContext);
useEffect(() => {