From b23234e5431fb5b1b6324e5e7e8b7ae3bf001e9f Mon Sep 17 00:00:00 2001 From: Oli Date: Tue, 18 Oct 2022 17:46:14 +0100 Subject: [PATCH] Fix typo (#10204) --- src/link/batch-http/batchHttpLink.ts | 2 +- src/link/http/parseAndCheckHttpResponse.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/link/batch-http/batchHttpLink.ts b/src/link/batch-http/batchHttpLink.ts index e1c2074a4cf..73c065f33a9 100644 --- a/src/link/batch-http/batchHttpLink.ts +++ b/src/link/batch-http/batchHttpLink.ts @@ -148,7 +148,7 @@ export class BatchHttpLink extends ApolloLink { if (err.name === 'AbortError') return; // if it is a network error, BUT there is graphql result info // fire the next observer before calling error - // this gives apollo-client (and react-apollo) the `graphqlErrors` and `networErrors` + // this gives apollo-client (and react-apollo) the `graphqlErrors` and `networkErrors` // to pass to UI // this should only happen if we *also* have data as part of the response key per // the spec diff --git a/src/link/http/parseAndCheckHttpResponse.ts b/src/link/http/parseAndCheckHttpResponse.ts index 32291998528..9a77dbc0d00 100644 --- a/src/link/http/parseAndCheckHttpResponse.ts +++ b/src/link/http/parseAndCheckHttpResponse.ts @@ -135,7 +135,7 @@ export function handleError(err: any, observer: Observer) { if (err.name === "AbortError") return; // if it is a network error, BUT there is graphql result info fire // the next observer before calling error this gives apollo-client - // (and react-apollo) the `graphqlErrors` and `networErrors` to + // (and react-apollo) the `graphqlErrors` and `networkErrors` to // pass to UI this should only happen if we *also* have data as // part of the response key per the spec if (err.result && err.result.errors && err.result.data) {