fix: Schedule 카테고리 '전체' 카운트를 선택된 날짜 기준으로 수정

- categoryCounts.get('total')로 변경하여 선택된 날짜 기준으로 표시
This commit is contained in:
caadiq 2026-01-09 21:43:45 +09:00
parent 71a206da36
commit 12e95003ae

View file

@ -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>