260313_01_ENH: 연도가 있는 문항 내용에 필터 연도 적용
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user