From f797736f8ee36ee5f32ada5347f1d08dae20f4eb Mon Sep 17 00:00:00 2001 From: caadiq Date: Wed, 21 Jan 2026 11:54:12 +0900 Subject: [PATCH] =?UTF-8?q?Revert=20"=EB=8B=AC=EB=A0=A5=EC=97=90=EC=84=9C?= =?UTF-8?q?=20=EC=B9=B4=ED=85=8C=EA=B3=A0=EB=A6=AC=20=ED=95=84=ED=84=B0=20?= =?UTF-8?q?=EC=A0=81=EC=9A=A9"?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This reverts commit 0c278597c03571f8c872a7ea56899b2625504d34. --- frontend/src/pages/mobile/public/Schedule.jsx | 8 ++------ frontend/src/pages/pc/public/Schedule.jsx | 6 ++---- 2 files changed, 4 insertions(+), 10 deletions(-) diff --git a/frontend/src/pages/mobile/public/Schedule.jsx b/frontend/src/pages/mobile/public/Schedule.jsx index e6ba6c3..f833d5e 100644 --- a/frontend/src/pages/mobile/public/Schedule.jsx +++ b/frontend/src/pages/mobile/public/Schedule.jsx @@ -686,13 +686,9 @@ function MobileSchedule() { const day = String(date.getDate()).padStart(2, '0'); const dateStr = `${year}-${month}-${day}`; - // 해당 날짜의 일정 목록 (최대 3개, 카테고리 필터 적용) + // 해당 날짜의 일정 목록 (최대 3개) const daySchedules = schedules - .filter(s => { - const matchesDate = s.date?.split('T')[0] === dateStr; - const matchesCategory = selectedCategories.length === 0 || selectedCategories.includes(s.category_id); - return matchesDate && matchesCategory; - }) + .filter(s => s.date?.split('T')[0] === dateStr) .slice(0, 3); return ( diff --git a/frontend/src/pages/pc/public/Schedule.jsx b/frontend/src/pages/pc/public/Schedule.jsx index d32a097..c04d0d1 100644 --- a/frontend/src/pages/pc/public/Schedule.jsx +++ b/frontend/src/pages/pc/public/Schedule.jsx @@ -804,13 +804,11 @@ function Schedule() { const dayOfWeek = (firstDay + i) % 7; const isToday = new Date().toDateString() === new Date(year, month, day).toDateString(); - // 해당 날짜의 일정 목록 (점 표시용, 최대 3개, 카테고리 필터 적용) + // 해당 날짜의 일정 목록 (점 표시용, 최대 3개) const daySchedules = schedules.filter(s => { const scheduleDate = s.date ? s.date.split('T')[0] : ''; const dateStr = `${year}-${String(month + 1).padStart(2, '0')}-${String(day).padStart(2, '0')}`; - const matchesDate = scheduleDate === dateStr; - const matchesCategory = selectedCategories.length === 0 || selectedCategories.includes(s.category_id); - return matchesDate && matchesCategory; + return scheduleDate === dateStr; }).slice(0, 3); return (