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 + > + + 삭제 + - } + ) + : + ( + <> + ) + } + ) }