Remove re-fetching of manga query on chapter update (#449)

The mutation returns the mutated manga, thus, updating the cache which makes this  refetch unnecessary and just creates redundant requests.
This commit is contained in:
schroda
2023-11-11 23:42:33 +01:00
committed by GitHub
parent c5f943d571
commit 291e1899f9

View File

@@ -1425,7 +1425,7 @@ export class RequestManager {
GQLMethod.MUTATION, GQLMethod.MUTATION,
UPDATE_CHAPTER, UPDATE_CHAPTER,
{ input: { id, patch } }, { input: { id, patch } },
{ refetchQueries: [GET_MANGA], ...options }, options,
); );
} }