Ignore cached data for database library manga category cleanup
Button only worked once and then required a page refresh, because, otherwise, the cached data from the first call just kept getting used
This commit is contained in:
@@ -46,6 +46,7 @@ const removeNonLibraryMangasFromCategories = async (): Promise<void> => {
|
|||||||
{
|
{
|
||||||
filter: { inLibrary: { equalTo: false }, categoryId: { isNull: false } },
|
filter: { inLibrary: { equalTo: false }, categoryId: { isNull: false } },
|
||||||
},
|
},
|
||||||
|
{ fetchPolicy: 'no-cache' },
|
||||||
).response;
|
).response;
|
||||||
|
|
||||||
const mangaIdsToRemove = Mangas.getIds(nonLibraryMangas.data.mangas.nodes);
|
const mangaIdsToRemove = Mangas.getIds(nonLibraryMangas.data.mangas.nodes);
|
||||||
|
|||||||
Reference in New Issue
Block a user