Skip to content
Snippets Groups Projects
Commit 859383ab authored by 한동현's avatar 한동현
Browse files

fix: 로그 조회 요청 쿼리 오류 수정

parent c92c5bd1
Branches
No related tags found
No related merge requests found
...@@ -51,7 +51,11 @@ export default function LogList() { ...@@ -51,7 +51,11 @@ export default function LogList() {
useEffect(() => { useEffect(() => {
setLogs(null); 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> => { .then((response): Promise<LogListResponse> => {
if (!response.ok) throw new Error(`로그 목록 조회 실패: (${response.status})`); if (!response.ok) throw new Error(`로그 목록 조회 실패: (${response.status})`);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment