fix: undefined error

This commit is contained in:
devthejo 2025-07-02 12:14:02 +02:00
parent 2a6ee305cb
commit 795a0f8a6d

View file

@ -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;
}