fix: undefined error

This commit is contained in:
devthejo 2025-07-02 12:14:02 +02:00
parent b5ae235ba4
commit d4de0b4541

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