From 8be8831fc4d642082ced351ddf81c09462f4333c Mon Sep 17 00:00:00 2001 From: keyy1315 Date: Wed, 6 Aug 2025 08:55:54 +0900 Subject: [PATCH] =?UTF-8?q?docs:=20=EB=88=84=EC=88=98=20=ED=9D=94=EC=A0=81?= =?UTF-8?q?=20-=20leakTrace=20=EC=B6=94=ED=9B=84=20=EA=B3=B5=ED=86=B5=20?= =?UTF-8?q?=EC=BD=94=EB=93=9C=20=EA=B4=80=EB=A0=A8=20=EC=9C=A0=EC=A7=80?= =?UTF-8?q?=EB=B3=B4=EC=88=98=20=EC=9C=84=ED=95=9C=20=EC=A3=BC=EC=84=9D=20?= =?UTF-8?q?=EC=B6=94=EA=B0=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - leakTrace 컬럼이 boolean 타입으로 되어 있어 추후 유지보수를 위한 설명 주석 추가 --- src/components/survey-sale/detail/RoofForm.tsx | 1 + 1 file changed, 1 insertion(+) diff --git a/src/components/survey-sale/detail/RoofForm.tsx b/src/components/survey-sale/detail/RoofForm.tsx index 553acf2..33aded8 100644 --- a/src/components/survey-sale/detail/RoofForm.tsx +++ b/src/components/survey-sale/detail/RoofForm.tsx @@ -401,6 +401,7 @@ const RadioSelected = ({ const [etcChecked, setEtcChecked] = useState(Boolean(etcValue)) const selectedId = + /** 누수 흔적 boolean 타입이므로 number 타입으로 변환 - 값이 없을 경우 2(없음) 으로 초기화*/ column === 'leakTrace' ? Number(detailInfoData?.[column as keyof SurveyDetailInfo]) || 2 : detailInfoData?.[column as keyof SurveyDetailInfo] const isSpecialColumn = column === 'rafterDirection' || column === 'leakTrace' || column === 'insulationPresence'