fix: undefined error
This commit is contained in:
parent
b5ae235ba4
commit
d4de0b4541
1 changed files with 1 additions and 1 deletions
|
@ -9,7 +9,7 @@ export default function getStatusCode({ networkError, graphQLErrors }) {
|
|||
if (graphQLErrors) {
|
||||
let code;
|
||||
for (const err of graphQLErrors) {
|
||||
if (err.extensions.http) {
|
||||
if (err.extensions?.http) {
|
||||
code = err.extensions.http;
|
||||
break;
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue