Update fetch-graphql-api.ts

This commit is contained in:
cond0r 2022-11-22 10:41:00 +02:00
parent f4866769d4
commit 3ed7ff5ee7

View File

@ -28,7 +28,7 @@ const fetchGraphqlApi: GraphQLFetcher = async (
const { data, errors, message, type, status } = await res.json()
if (errors) {
if (errors || res.status >= 400) {
throw getError(
errors || [
{