From 7d177853c81b4c0ff7a80ba2150ed55e9ee356fb Mon Sep 17 00:00:00 2001 From: tkv00 Date: Tue, 17 Dec 2024 19:43:34 +0900 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=9Bfix:=EC=B9=B4=EC=B9=B4=EC=98=A4?= =?UTF-8?q?=EB=A7=B5=20=EC=98=A4=EB=A5=98=20=EC=9E=A0=EC=A0=95=EC=A0=81=20?= =?UTF-8?q?=ED=95=B4=EA=B2=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/nyangmap/CatMarker.jsx | 2 +- src/components/nyangmap/KakaoMap.jsx | 4 +--- src/main.jsx | 3 +-- src/pages/Friend.jsx | 2 +- 4 files changed, 4 insertions(+), 7 deletions(-) diff --git a/src/components/nyangmap/CatMarker.jsx b/src/components/nyangmap/CatMarker.jsx index 9b90ced..d87fb84 100644 --- a/src/components/nyangmap/CatMarker.jsx +++ b/src/components/nyangmap/CatMarker.jsx @@ -24,7 +24,7 @@ export default function CatMarker({ post, onClick }) { {/* 호버 시 나타나는 정보 */}

- {post.catName} + {post?.catName}

diff --git a/src/components/nyangmap/KakaoMap.jsx b/src/components/nyangmap/KakaoMap.jsx index 202b573..59e25e5 100644 --- a/src/components/nyangmap/KakaoMap.jsx +++ b/src/components/nyangmap/KakaoMap.jsx @@ -70,9 +70,7 @@ export default function KakoMap() { fetchMapData(); }, [location, setPostsCount]); - if (locationError || error) { - return ; - } + if (loading) { return ; } diff --git a/src/main.jsx b/src/main.jsx index 1c7d886..d081605 100644 --- a/src/main.jsx +++ b/src/main.jsx @@ -3,13 +3,12 @@ import App from "./App.jsx"; import "./index.css"; import { BrowserRouter } from "react-router-dom"; import { QueryClient, QueryClientProvider } from "react-query"; -import { ReactQueryDevtools } from "react-query/devtools"; + const queryClient = new QueryClient(); createRoot(document.getElementById("root")).render( - diff --git a/src/pages/Friend.jsx b/src/pages/Friend.jsx index 88021a5..dc475ab 100644 --- a/src/pages/Friend.jsx +++ b/src/pages/Friend.jsx @@ -1,4 +1,4 @@ -import { useState } from "react"; + import Header from "../components/common/Header"; import NavBar from "../components/common/NavBar"; import Title from "../components/common/Title";