From 5fc99b71a268eac6899c6843ec2a66fc2f16cc3e Mon Sep 17 00:00:00 2001 From: Kamil Kisiela Date: Wed, 23 Nov 2022 10:17:15 +0100 Subject: [PATCH] Do not report GraphQL errors from urql (#673) --- packages/web/app/src/lib/urql.ts | 3 --- 1 file changed, 3 deletions(-) diff --git a/packages/web/app/src/lib/urql.ts b/packages/web/app/src/lib/urql.ts index d84bd33f3..3ed02f87c 100644 --- a/packages/web/app/src/lib/urql.ts +++ b/packages/web/app/src/lib/urql.ts @@ -1,6 +1,5 @@ import { createClient, dedupExchange, errorExchange, fetchExchange } from 'urql'; import { cacheExchange } from '@urql/exchange-graphcache'; -import { captureException } from '@sentry/nextjs'; import { Mutation } from './urql-cache'; import { networkStatusExchange } from './urql-exchanges/state'; @@ -49,8 +48,6 @@ export const urqlClient = createClient({ onError(error) { if (error.response?.status === 401) { window.location.href = '/logout'; - } else { - captureException(error); } }, }),