fix: 검색 모드에서 카테고리 카운트 수정

- 검색 모드일 때 selectedDate 조건 제거하여 모든 검색 결과의 카테고리 표시
- Schedule.jsx, AdminSchedule.jsx 수정
This commit is contained in:
caadiq 2026-01-10 09:13:49 +09:00
parent cdca23e317
commit bedda590eb
2 changed files with 4 additions and 4 deletions

View file

@ -537,8 +537,8 @@ function AdminSchedule() {
let total = 0; let total = 0;
source.forEach(s => { source.forEach(s => {
// //
if (selectedDate) { if (!isSearchMode && selectedDate) {
const scheduleDate = formatDate(s.date); const scheduleDate = formatDate(s.date);
if (scheduleDate !== selectedDate) return; if (scheduleDate !== selectedDate) return;
} }

View file

@ -291,8 +291,8 @@ function Schedule() {
source.forEach(s => { source.forEach(s => {
const scheduleDate = s.date ? s.date.split('T')[0] : ''; const scheduleDate = s.date ? s.date.split('T')[0] : '';
// //
if (selectedDate) { if (!isSearchMode && selectedDate) {
if (scheduleDate !== selectedDate) return; if (scheduleDate !== selectedDate) return;
} }