From 74edfaf9ca1b63565a008766b585160dab02662a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bart=C5=82omiej=20G=C5=82ownia?= Date: Wed, 21 Sep 2022 14:50:34 +0200 Subject: [PATCH] chore: ignore apollo errors - to be reverted after API will be fixed --- .../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) {