diff --git a/front/src/components/app/checkAppVersion.component.tsx b/front/src/components/app/checkAppVersion.component.tsx index 32a70a18a..872e47677 100644 --- a/front/src/components/app/checkAppVersion.component.tsx +++ b/front/src/components/app/checkAppVersion.component.tsx @@ -53,6 +53,7 @@ const CheckAppVersion: FC = () => { query={ConfigQueries.CONFIG_GET_LAST_APP_VERSION} fetchPolicy={FetchPoliciesConstants.NO_CACHE} getFetchedData={handleResults} + showErrorMessage={false} /> ); }; diff --git a/front/src/services/graphQL/graphQLQueries.component.tsx b/front/src/services/graphQL/graphQLQueries.component.tsx index afe527137..a82533524 100644 --- a/front/src/services/graphQL/graphQLQueries.component.tsx +++ b/front/src/services/graphQL/graphQLQueries.component.tsx @@ -14,6 +14,7 @@ interface Props { notifyOnNetworkStatusChange?: boolean; noLoader?: boolean; noLoaderBackdrop?: boolean; + showErrorMessage?: boolean; } export const GraphQLQuery: FC = ({ @@ -23,6 +24,7 @@ export const GraphQLQuery: FC = ({ notifyOnNetworkStatusChange, noLoader, noLoaderBackdrop, + showErrorMessage = true, }) => { const { loading, error, data } = useQuery(gql(query), { fetchPolicy: fetchPolicy ?? FetchPoliciesConstants.NETWORK_ONLY, @@ -36,7 +38,7 @@ export const GraphQLQuery: FC = ({ return ( ); - if (error) return ; + if (error && showErrorMessage) return ; return null; };