[st] chore: 검증 결과 상태 값 추가

This commit is contained in:
2026-03-13 14:20:36 +09:00
parent 1d73da316c
commit 6b28c4e332
2 changed files with 15 additions and 2 deletions
@@ -125,9 +125,22 @@ const RegionalGrid: React.FC<RegionalGridProps> = ({
}
}
const mapOtlrToLabel = (otlrYn: string) => {
switch (otlrYn) {
case "0":
return "정상";
case "1":
return "이상치";
case "2":
return "제외";
default:
return "";
}
};
const mappedData = data.map((item) => ({
...item,
otlrYn: item.otlrYn === "0" ? "정상" : "이상치",
otlrYn: mapOtlrToLabel(item.otlrYn),
}));
setGridRowData(