260313_01_ENH: 연도가 있는 문항 내용에 필터 연도 적용

This commit is contained in:
2026-03-13 10:23:18 +09:00
parent 72e18adb03
commit c66b51ca53
2 changed files with 31 additions and 27 deletions

View File

@@ -20,9 +20,13 @@ const CategoryDetail = ({
const dataLength = dataMap?.[f.requestKeyResolved].filter((row) => row.rowLabel !=`사례수`).length;
const qid = f.qidByMode[debouncedFilterValue.type.value];
let surveyTitle = qid? QID_SURVEY_TITLE[qid] ?? "" : "";
surveyTitle = surveyTitle.replaceAll("[#YEAR#]", debouncedFilterValue.year);
surveyTitle = surveyTitle.replaceAll("[#NEXT_YEAR#]", String(Number(debouncedFilterValue.year) + 1));
return {
title: typeof f.title === "string"? f.title : f.title[debouncedFilterValue.type.value],
surveyTitle: qid? QID_SURVEY_TITLE[qid] ?? "" : "",
surveyTitle: surveyTitle,
chartMode:f.chartMode,
chartLegend:f.chartLegend,
chartTopMargin:f.chartTopMargin,