시도, 시군구 코드 명 반영

This commit is contained in:
leedj312
2025-04-25 13:44:39 +09:00
parent e78e3639fc
commit 5cc97dbb49
+2 -2
View File
@@ -24,10 +24,10 @@ export const getCity = (val: string, sggCd: SelectDataType[]) => {
return data?.map((item: { sggCd: string; ctpvCd: string; reuseBuilding: { lawTrgtYn: any , bdstUsgCd:any}[]; }) => {
let returnData = {};
const sggText = chCode.sggCd.find(
(cd) => cd.val === item.sggCd
(cd) => cd.val === String(item.sggCd)
)?.text;
const cityText = chCode.cityCd.find(
(cd) => cd.val === item.ctpvCd
(cd) => cd.val === String(item.ctpvCd)
)?.text;
if (item?.reuseBuilding?.length >0) {