chore: ignore apollo errors - to be reverted after API will be fixed (#1407)

This commit is contained in:
Bartłomiej Głownia 2022-09-21 16:00:48 +02:00 committed by GitHub
parent cc7a4f2ddd
commit efc1d909b3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 0 deletions

View File

@ -17,6 +17,7 @@ export const PageQueryContainer = <TData, TVariables = OperationVariables>({
}: PageQueryContainerProps<TData, TVariables>) => { }: PageQueryContainerProps<TData, TVariables>) => {
const { data, loading, error } = useQuery<TData, TVariables>(query, { const { data, loading, error } = useQuery<TData, TVariables>(query, {
...options, ...options,
errorPolicy: 'ignore',
}); });
return ( return (

View File

@ -270,6 +270,7 @@ function makeDataProviderInternal<QueryData, Data, SubscriptionData, Delta>({
? { ...variables, pagination: { first: pagination.first } } ? { ...variables, pagination: { first: pagination.first } }
: variables, : variables,
fetchPolicy, fetchPolicy,
errorPolicy: 'ignore',
}); });
data = getData(res.data); data = getData(res.data);
if (data && pagination) { if (data && pagination) {