Refetch GET_MANGAS query on track unbind mutation (#684)

GET_CATEGORY_MANGAS is only used for the default category
This commit is contained in:
schroda
2024-03-31 17:23:52 +02:00
committed by GitHub
parent d59f90f787
commit 25b7d149ba

View File

@@ -2482,7 +2482,7 @@ export class RequestManager {
GQLMethod.MUTATION, GQLMethod.MUTATION,
TRACKER_UPDATE_BIND, TRACKER_UPDATE_BIND,
{ input: { ...patch, recordId: id } }, { input: { ...patch, recordId: id } },
{ refetchQueries: patch.unbind ? [GET_MANGA, GET_CATEGORY_MANGAS] : undefined, ...options }, { refetchQueries: patch.unbind ? [GET_MANGA, GET_CATEGORY_MANGAS, GET_MANGAS] : undefined, ...options },
); );
} }
} }