From 043f8b465dfa50749092b46a897571a265816ba3 Mon Sep 17 00:00:00 2001 From: caadiq Date: Sat, 10 Jan 2026 09:40:40 +0900 Subject: [PATCH] =?UTF-8?q?fix:=20=EA=B0=80=EC=83=81=20=EC=8A=A4=ED=81=AC?= =?UTF-8?q?=EB=A1=A4=20=EB=B2=84=EA=B7=B8=20=EC=88=98=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - searchSchedules 미정의 오류 수정 (setSearchTerm만 사용) - Schedule.jsx 항목 간 여백 추가 (ITEM_HEIGHT 136px) --- frontend/src/pages/pc/admin/AdminSchedule.jsx | 11 ----------- frontend/src/pages/pc/public/Schedule.jsx | 14 +++++++------- 2 files changed, 7 insertions(+), 18 deletions(-) diff --git a/frontend/src/pages/pc/admin/AdminSchedule.jsx b/frontend/src/pages/pc/admin/AdminSchedule.jsx index 2876f12..db9e04e 100644 --- a/frontend/src/pages/pc/admin/AdminSchedule.jsx +++ b/frontend/src/pages/pc/admin/AdminSchedule.jsx @@ -345,15 +345,6 @@ function AdminSchedule() { fetchSchedules(); }, [year, month]); - - - // 검색 모드로 돌아왔을 때 검색 결과 다시 로드 - useEffect(() => { - if (isSearchMode && searchTerm) { - searchSchedules(searchTerm); - } - }, []); // 컴포넌트 마운트 시에만 - // 스크롤 위치 복원 useEffect(() => { if (scrollContainerRef.current && scrollPosition > 0) { @@ -986,7 +977,6 @@ function AdminSchedule() { onKeyDown={(e) => { if (e.key === 'Enter') { setSearchTerm(searchInput); - searchSchedules(searchInput); } else if (e.key === 'Escape') { setIsSearchMode(false); setSearchInput(''); @@ -999,7 +989,6 @@ function AdminSchedule() {