fix: 검색 모드에서 카테고리 카운트 수정
- 검색 모드일 때 selectedDate 조건 제거하여 모든 검색 결과의 카테고리 표시 - Schedule.jsx, AdminSchedule.jsx 수정
This commit is contained in:
parent
cdca23e317
commit
bedda590eb
2 changed files with 4 additions and 4 deletions
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue