From bedda590ebc548248c34196d42bca12258f23dce Mon Sep 17 00:00:00 2001 From: caadiq Date: Sat, 10 Jan 2026 09:13:49 +0900 Subject: [PATCH] =?UTF-8?q?fix:=20=EA=B2=80=EC=83=89=20=EB=AA=A8=EB=93=9C?= =?UTF-8?q?=EC=97=90=EC=84=9C=20=EC=B9=B4=ED=85=8C=EA=B3=A0=EB=A6=AC=20?= =?UTF-8?q?=EC=B9=B4=EC=9A=B4=ED=8A=B8=20=EC=88=98=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 검색 모드일 때 selectedDate 조건 제거하여 모든 검색 결과의 카테고리 표시 - Schedule.jsx, AdminSchedule.jsx 수정 --- frontend/src/pages/pc/admin/AdminSchedule.jsx | 4 ++-- frontend/src/pages/pc/public/Schedule.jsx | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/frontend/src/pages/pc/admin/AdminSchedule.jsx b/frontend/src/pages/pc/admin/AdminSchedule.jsx index 4dd327c..701ac9e 100644 --- a/frontend/src/pages/pc/admin/AdminSchedule.jsx +++ b/frontend/src/pages/pc/admin/AdminSchedule.jsx @@ -537,8 +537,8 @@ function AdminSchedule() { let total = 0; source.forEach(s => { - // 선택된 날짜가 있으면 해당 날짜만 카운트 - if (selectedDate) { + // 검색 모드가 아닐 때만 선택된 날짜 기준으로 필터링 + if (!isSearchMode && selectedDate) { const scheduleDate = formatDate(s.date); if (scheduleDate !== selectedDate) return; } diff --git a/frontend/src/pages/pc/public/Schedule.jsx b/frontend/src/pages/pc/public/Schedule.jsx index df3e0c1..48d7c6c 100644 --- a/frontend/src/pages/pc/public/Schedule.jsx +++ b/frontend/src/pages/pc/public/Schedule.jsx @@ -291,8 +291,8 @@ function Schedule() { source.forEach(s => { const scheduleDate = s.date ? s.date.split('T')[0] : ''; - // 선택된 날짜가 있으면 해당 날짜만 카운트 - if (selectedDate) { + // 검색 모드가 아닐 때만 선택된 날짜 기준으로 필터링 + if (!isSearchMode && selectedDate) { if (scheduleDate !== selectedDate) return; }