fix: Schedule 카테고리 '전체' 카운트를 선택된 날짜 기준으로 수정
- categoryCounts.get('total')로 변경하여 선택된 날짜 기준으로 표시
This commit is contained in:
parent
71a206da36
commit
12e95003ae
1 changed files with 1 additions and 7 deletions
|
|
@ -636,13 +636,7 @@ function Schedule() {
|
||||||
<span>전체</span>
|
<span>전체</span>
|
||||||
</div>
|
</div>
|
||||||
<span className="text-sm text-gray-400">
|
<span className="text-sm text-gray-400">
|
||||||
{isSearchMode && searchTerm
|
{categoryCounts.get('total') || 0}
|
||||||
? searchResults.length
|
|
||||||
: schedules.filter(s => {
|
|
||||||
const scheduleDate = s.date ? s.date.split('T')[0] : '';
|
|
||||||
return scheduleDate.startsWith(currentYearMonth);
|
|
||||||
}).length
|
|
||||||
}
|
|
||||||
</span>
|
</span>
|
||||||
</button>
|
</button>
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue