Skip to content

Commit

Permalink
bug: extend error thrown to fix #5693
Browse files Browse the repository at this point in the history
  • Loading branch information
Baroshem committed Mar 26, 2021
1 parent e50c6d5 commit 4e10c59
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ const getProduct = async (context, params, customQuery?: CustomQuery) => {
});
return request;
} catch (error) {
throw error.networkError?.result || error;
throw error.graphQLErrors?.[0] || error.networkError?.result || error;
}

};
Expand Down

0 comments on commit 4e10c59

Please sign in to comment.