From 13576be1f6a90495a8a6d99bc183bb4b202d2108 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?junh=5Feee=28=EC=9D=B4=EC=A4=80=ED=9D=AC=29?= Date: Tue, 23 Aug 2022 17:29:32 +0900 Subject: [PATCH] =?UTF-8?q?=EB=B9=84=ED=96=89=EA=B3=84=ED=9A=8D=EC=84=9C?= =?UTF-8?q?=20-=20=EC=82=AD=EC=A0=9C=20=EB=B2=84=ED=8A=BC=20=EC=88=98?= =?UTF-8?q?=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../basis/flight/plan/FlightPlanForm.js | 110 +++++++++--------- 1 file changed, 57 insertions(+), 53 deletions(-) diff --git a/src/components/basis/flight/plan/FlightPlanForm.js b/src/components/basis/flight/plan/FlightPlanForm.js index b0434a4..96b8e2a 100644 --- a/src/components/basis/flight/plan/FlightPlanForm.js +++ b/src/components/basis/flight/plan/FlightPlanForm.js @@ -646,35 +646,27 @@ const PilotForm = ({data, handleChange, index, handleDeleteArray}) => { /> - {index !== 0 ? + {data.groupNm? + ( - - handleDeleteArray({ type: 'pilot', index }) - } - outline - > - - 삭제 - + + handleDeleteArray({ type: 'pilot', index }) + } + outline + > + + 삭제 + - : - - - handleDeleteArray({ type: 'pilot', index }) - } - outline - > - - 삭제 - - - } + ) + : + ( + <> + ) + } ) } @@ -787,35 +779,47 @@ const ArcrftForm = ({data, handleChange, index, handleDeleteArray}) => { /> - {index !== 0 ? - - - handleDeleteArray({ type: 'pilot', index }) - } - outline - > - - 삭제 - - + {/* {index !== 0 ? + ( + + + handleDeleteArray({ type: 'pilot', index }) + } + outline + > + + 삭제 + + + ) : + <> + } */} + {data.groupNm? + ( - - handleDeleteArray({ type: 'pilot', index }) - } - outline - > - - 삭제 - + + handleDeleteArray({ type: 'arcrft', index }) + } + outline + > + + 삭제 + - } + ) + : + ( + <> + ) + } + ) }