From 65392949e6a48e9091969e58a7f4fab7a59d87b3 Mon Sep 17 00:00:00 2001 From: KaWaite <34051327+KaWaite@users.noreply.github.com> Date: Mon, 26 Jun 2023 21:59:36 +0900 Subject: [PATCH] fix --- web/src/services/gql/provider.tsx | 3 --- 1 file changed, 3 deletions(-) diff --git a/web/src/services/gql/provider.tsx b/web/src/services/gql/provider.tsx index 508431a490..b2ce096b19 100644 --- a/web/src/services/gql/provider.tsx +++ b/web/src/services/gql/provider.tsx @@ -10,7 +10,6 @@ import type { ReactNode } from "react"; import { reportError } from "@reearth/sentry"; import { useAuth } from "@reearth/services/auth"; import { e2eAccessToken } from "@reearth/services/config"; -import { useError } from "@reearth/services/state"; import fragmentMatcher from "./fragmentMatcher.json"; @@ -51,7 +50,6 @@ const Provider: React.FC<{ children?: ReactNode }> = ({ children }) => { const endpoint = window.REEARTH_CONFIG?.api ? `${window.REEARTH_CONFIG.api}/graphql` : "/api/graphql"; - const [, setError] = useError(); const { getAccessToken } = useAuth(); const authLink = setContext(async (_, { headers }) => { @@ -83,7 +81,6 @@ const Provider: React.FC<{ children?: ReactNode }> = ({ children }) => { }; } if (error) { - setError(error); reportError(error); } });