빌드에러 수정
This commit is contained in:
@@ -36,7 +36,8 @@ export default function FlowRateModal(props: { fcltyName: string; facilityCd: st
|
||||
|
||||
const filterData = useCallback((returnType: ReturnType<FlowRateModalInterface>) => {
|
||||
if (!returnType.filteredList) return;
|
||||
const filteredData = setFilterAfterData(returnType.filteredList);
|
||||
// 타입을 FlowRateModalInterface[]로 강제 변환하여 타입 오류 해결
|
||||
const filteredData = setFilterAfterData(returnType.filteredList as FlowRateModalInterface[]);
|
||||
setCopyYearList(filteredData);
|
||||
}, []);
|
||||
|
||||
@@ -110,7 +111,8 @@ export default function FlowRateModal(props: { fcltyName: string; facilityCd: st
|
||||
sumFlow: Math.round(avgsumFlow / filteredData.length * 10) / 10,
|
||||
returnAmnt: Math.round(avgreturnAmnt / filteredData.length * 10) / 10,
|
||||
efflAmnt: Math.round(avgefflAmnt / filteredData.length * 10) / 10,
|
||||
infoRnDay: avginfoRnDay > 0 ? (Math.round(avginfoRnDay / filteredData.length * 10) / 10).toFixed(1) : '0.0',
|
||||
infoRnDay: avginfoRnDay > 0 ? Math.round(avginfoRnDay / filteredData.length * 10) / 10 : 0,
|
||||
rainEffectDay: 0,
|
||||
},
|
||||
{
|
||||
msrDt: '최대',
|
||||
@@ -120,6 +122,7 @@ export default function FlowRateModal(props: { fcltyName: string; facilityCd: st
|
||||
returnAmnt: Math.round(maxreturnAmnt * 10) / 10,
|
||||
efflAmnt: Math.round(maxefflAmnt * 10) / 10,
|
||||
infoRnDay: maxinfoRnDay > 0 ? (Math.round(maxinfoRnDay * 10) / 10).toFixed(1) : '0.0',
|
||||
rainEffectDay: 0,
|
||||
},
|
||||
{
|
||||
msrDt: '최소',
|
||||
@@ -129,6 +132,7 @@ export default function FlowRateModal(props: { fcltyName: string; facilityCd: st
|
||||
returnAmnt: Math.round(minreturnAmnt * 10) / 10,
|
||||
efflAmnt: Math.round(minefflAmnt * 10) / 10,
|
||||
infoRnDay: mininfoRnDay > 0 ? (Math.round(mininfoRnDay * 10) / 10).toFixed(1) : '0.0',
|
||||
rainEffectDay: 0,
|
||||
},
|
||||
...filteredData
|
||||
];
|
||||
|
||||
Reference in New Issue
Block a user