From 50e1ea19ccba8cbfe685f1b1b2a39ee1e5afecbf Mon Sep 17 00:00:00 2001 From: kric_jspark Date: Mon, 11 May 2026 16:58:04 +0900 Subject: [PATCH] =?UTF-8?q?260511=5F01=5FENH:=20year=EA=B0=80=20=EA=B3=A0?= =?UTF-8?q?=EC=A0=95=EC=9C=BC=EB=A1=9C=20=EB=93=A4=EC=96=B4=EA=B0=80=20?= =?UTF-8?q?=EC=9E=88=EB=8D=98=20=EB=B2=84=EA=B7=B8=20=EC=88=98=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../category/sub-page/category-page/CategoryDetail.tsx | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/app/(pages)/(main)/category/sub-page/category-page/CategoryDetail.tsx b/src/app/(pages)/(main)/category/sub-page/category-page/CategoryDetail.tsx index 0907183..53d807b 100644 --- a/src/app/(pages)/(main)/category/sub-page/category-page/CategoryDetail.tsx +++ b/src/app/(pages)/(main)/category/sub-page/category-page/CategoryDetail.tsx @@ -52,11 +52,13 @@ const CategoryDetail = ({ const sheetName = `${product}_${type}_${target}` const h3 = buildHeader_Banner(BANNER_GROUP, BANNER_KEY_MAP); + const years = [ + debouncedFilterValue.year, + String(Number(debouncedFilterValue.year) - 1), + ].filter((year) => YEARS.includes(year)); type AnyRow = Record; const sections: Section[] = tableDataArray.flatMap((tableData) => { - const years = [YEARS.at(-1), YEARS.at(-2)]; - return years.map((year) => ({ title: `${tableData.title}_${year}년`, header: h3,