Unverified Commit 0d2121db authored by ArianHamdi's avatar ArianHamdi Committed by GitHub

change map function to forEach function (#37284)

close #37283
parent c4fdfcb7
...@@ -11,7 +11,7 @@ let apolloClient ...@@ -11,7 +11,7 @@ let apolloClient
const errorLink = onError(({ graphQLErrors, networkError }) => { const errorLink = onError(({ graphQLErrors, networkError }) => {
if (graphQLErrors) if (graphQLErrors)
graphQLErrors.map(({ message, locations, path }) => graphQLErrors.forEach(({ message, locations, path }) =>
console.log( console.log(
`[GraphQL error]: Message: ${message}, Location: ${locations}, Path: ${path}` `[GraphQL error]: Message: ${message}, Location: ${locations}, Path: ${path}`
) )
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment