mirror of
https://github.com/graphql-hive/console
synced 2026-05-23 17:18:23 +00:00
Do not report GraphQL errors from urql (#673)
This commit is contained in:
parent
bc765afa9e
commit
5fc99b71a2
1 changed files with 0 additions and 3 deletions
|
|
@ -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);
|
||||
}
|
||||
},
|
||||
}),
|
||||
|
|
|
|||
Loading…
Reference in a new issue