mirror of
https://github.com/vercel/commerce.git
synced 2025-05-17 15:06:59 +00:00
Update fetch-graphql-api.ts
This commit is contained in:
parent
f4866769d4
commit
3ed7ff5ee7
@ -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 || [
|
||||
{
|
||||
|
Loading…
x
Reference in New Issue
Block a user