From efc1d909b393ddf33ff13ba855cb5a161154fa66 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bart=C5=82omiej=20G=C5=82ownia?= Date: Wed, 21 Sep 2022 16:00:48 +0200 Subject: [PATCH] chore: ignore apollo errors - to be reverted after API will be fixed (#1407) --- .../components/page-query-container/page-query-container.tsx | 1 + libs/react-helpers/src/lib/generic-data-provider.ts | 1 + 2 files changed, 2 insertions(+) diff --git a/apps/trading/components/page-query-container/page-query-container.tsx b/apps/trading/components/page-query-container/page-query-container.tsx index c521eab56..60454ff9e 100644 --- a/apps/trading/components/page-query-container/page-query-container.tsx +++ b/apps/trading/components/page-query-container/page-query-container.tsx @@ -17,6 +17,7 @@ export const PageQueryContainer = ({ }: PageQueryContainerProps) => { const { data, loading, error } = useQuery(query, { ...options, + errorPolicy: 'ignore', }); return ( diff --git a/libs/react-helpers/src/lib/generic-data-provider.ts b/libs/react-helpers/src/lib/generic-data-provider.ts index d12ca4a4d..776f06777 100644 --- a/libs/react-helpers/src/lib/generic-data-provider.ts +++ b/libs/react-helpers/src/lib/generic-data-provider.ts @@ -270,6 +270,7 @@ function makeDataProviderInternal({ ? { ...variables, pagination: { first: pagination.first } } : variables, fetchPolicy, + errorPolicy: 'ignore', }); data = getData(res.data); if (data && pagination) {