Skip to content

Commit

Permalink
Fix typo (apollographql#10204)
Browse files Browse the repository at this point in the history
  • Loading branch information
OliverWales committed Oct 18, 2022
1 parent 948eaeb commit b23234e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/link/batch-http/batchHttpLink.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion src/link/http/parseAndCheckHttpResponse.ts
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@ export function handleError(err: any, observer: Observer<any>) {
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) {
Expand Down

0 comments on commit b23234e

Please sign in to comment.