260511_01_ENH: year가 고정으로 들어가 있던 버그 수정 #9
@@ -52,11 +52,13 @@ const CategoryDetail = ({
|
|||||||
|
|
||||||
const sheetName = `${product}_${type}_${target}`
|
const sheetName = `${product}_${type}_${target}`
|
||||||
const h3 = buildHeader_Banner(BANNER_GROUP, BANNER_KEY_MAP);
|
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<string, any>;
|
type AnyRow = Record<string, any>;
|
||||||
const sections: Section<AnyRow>[] = tableDataArray.flatMap((tableData) => {
|
const sections: Section<AnyRow>[] = tableDataArray.flatMap((tableData) => {
|
||||||
const years = [YEARS.at(-1), YEARS.at(-2)];
|
|
||||||
|
|
||||||
return years.map((year) => ({
|
return years.map((year) => ({
|
||||||
title: `${tableData.title}_${year}년`,
|
title: `${tableData.title}_${year}년`,
|
||||||
header: h3,
|
header: h3,
|
||||||
|
|||||||
Reference in New Issue
Block a user