Update error link
This commit is contained in:
parent
769f87e05d
commit
c3bac02826
|
|
@ -44,10 +44,8 @@ export default function (uri, networkErrorCallback) {
|
|||
});
|
||||
|
||||
const errorLink = onError(({networkError, graphQLErrors, forward, operation}) => {
|
||||
const observable = forward(operation);
|
||||
if (networkError && networkErrorCallback) {
|
||||
networkErrorCallback(networkError.statusCode);
|
||||
return observable;
|
||||
}
|
||||
|
||||
if (graphQLErrors) {
|
||||
|
|
@ -63,7 +61,6 @@ export default function (uri, networkErrorCallback) {
|
|||
*/
|
||||
if (networkError && networkError.name === 'ServerParseError') {
|
||||
// workaround found here: https://github.com/apollographql/apollo-link/issues/855#issuecomment-485764697
|
||||
return observable;
|
||||
}
|
||||
});
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue