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() {