From c6b9889422cf3dd26f065f6731d364cb081ecc24 Mon Sep 17 00:00:00 2001 From: rlaisqls Date: Mon, 20 Nov 2023 11:34:26 +0900 Subject: [PATCH] =?UTF-8?q?if=EB=AC=B8=20=EC=88=98=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/manage/ProjectList.jsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/manage/ProjectList.jsx b/src/manage/ProjectList.jsx index 9e6753c4..a82f7640 100644 --- a/src/manage/ProjectList.jsx +++ b/src/manage/ProjectList.jsx @@ -51,7 +51,7 @@ export const ProjectList = () => { axios.get(url) .then((res) => {setData(res.data); setFetchError("")}) .catch((err) => { - if (data.length == 0) { setFetchError("권한이 없습니다")} + if (getData().length === 0) { setFetchError("권한이 없습니다")} }); }, [secret]);