하수재이용 시설 현황 팝업 실적 없을시 표출 안함으로 수정

This commit is contained in:
leedj312
2025-08-12 14:38:01 +09:00
parent 1feec308c1
commit 667dc58847
@@ -169,7 +169,7 @@ export function PbnstSttnModal({ data, titleVisible,isMap}: { data: customPbnst;
const inSubtotal = { ...structuredClone(subTotalObj), 구분: "장내용수" };
const outSubtotal = { ...structuredClone(subTotalObj), 구분: "장외용수" };
if (prfList) {
if (prfList&&prfList.length>0) {
prfList?.forEach((prfItem) => {
const month = Number(prfItem?.ym?.slice(4)); // "MM"
const monthKey = `${month}월`;
@@ -220,12 +220,16 @@ export function PbnstSttnModal({ data, titleVisible,isMap}: { data: customPbnst;
outPrf: outUsageData,
totalPrf: tableData,
});
}else{
setPrfData(undefined);
}
};
useEffect(() => {
if(isMap){
if(data.prfList &&data.prfList.length>0){
getTablePrfData(data.prfList);
}else{
getTablePrfData([]);
}
}else{