From 3c543e4856b41223e760bd71e0adbbae1052d937 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=EC=A0=95=EC=88=98=ED=98=84?= Date: Sat, 10 Feb 2024 19:35:00 +0900 Subject: [PATCH] =?UTF-8?q?fix:=20=EB=B9=8C=EB=93=9C=20=EC=97=90=EB=9F=AC?= =?UTF-8?q?=20=EC=88=98=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/hooks/queries/useBaseQuery.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/hooks/queries/useBaseQuery.ts b/src/hooks/queries/useBaseQuery.ts index ad0554a..bbc45bc 100644 --- a/src/hooks/queries/useBaseQuery.ts +++ b/src/hooks/queries/useBaseQuery.ts @@ -9,6 +9,6 @@ export const fetchData = async (url: string) => { export const useBaseQuery = (queryKey: any, url: string) => { return useSuspenseQuery({ queryKey, - queryFn: async () => await fetchData(url).then((res) => res.data).catch((error) => { console.log(error) + queryFn: async () => await fetchData(url).then((res) => res.data).catch((error) => { console.log(error)}), }); };