From 859383abf198cfe036a4bf3b60d9d152b5098304 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=ED=95=9C=EB=8F=99=ED=98=84?= <hando1220@ajou.ac.kr> Date: Mon, 31 Mar 2025 22:52:21 +0900 Subject: [PATCH] =?UTF-8?q?fix:=20=EB=A1=9C=EA=B7=B8=20=EC=A1=B0=ED=9A=8C?= =?UTF-8?q?=20=EC=9A=94=EC=B2=AD=20=EC=BF=BC=EB=A6=AC=20=EC=98=A4=EB=A5=98?= =?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/pages/log/List.tsx | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/pages/log/List.tsx b/src/pages/log/List.tsx index c504bf5..fa71081 100644 --- a/src/pages/log/List.tsx +++ b/src/pages/log/List.tsx @@ -51,7 +51,11 @@ export default function LogList() { useEffect(() => { setLogs(null); - authFetch(`/api/logs?projectId=${selectedProject?.id}&page=${page - 1}&${searchParams.toString()}`) + const apiSearchParams = new URLSearchParams(searchParams); + apiSearchParams.set('page', `${page - 1}`); + apiSearchParams.set('projectId', selectedProject?.id || ''); + + authFetch(`/api/logs?${apiSearchParams.toString()}`) .then((response): Promise<LogListResponse> => { if (!response.ok) throw new Error(`로그 목록 조회 실패: (${response.status})`); -- GitLab