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) {
|
if (graphQLErrors) {
|
||||||
let code;
|
let code;
|
||||||
for (const err of graphQLErrors) {
|
for (const err of graphQLErrors) {
|
||||||
if (err.extensions.http) {
|
if (err.extensions?.http) {
|
||||||
code = err.extensions.http;
|
code = err.extensions.http;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue