From e7344f46147a9e5e34ab8338f2c9959d1e6939bf Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Brais=20Pi=C3=B1eiro?= Date: Tue, 8 Oct 2019 13:47:10 +0100 Subject: [PATCH] Prevent runMutation from throwing an error This relates to https://github.com/apollographql/apollo-client/issues/4283 --- packages/hooks/src/data/MutationData.ts | 1 - 1 file changed, 1 deletion(-) diff --git a/packages/hooks/src/data/MutationData.ts b/packages/hooks/src/data/MutationData.ts index b4fbc50ca7..b4a49f58e8 100644 --- a/packages/hooks/src/data/MutationData.ts +++ b/packages/hooks/src/data/MutationData.ts @@ -71,7 +71,6 @@ export class MutationData< }) .catch((error: ApolloError) => { this.onMutationError(error, mutationId); - if (!this.getOptions().onError) throw error; }); };