Browse Source

비행구역설정 콘솔에러 수정

pull/2/head
이학준 2 years ago
parent
commit
38c79891e9
  1. 6
      src/components/basis/flight/plan/FlightPlanAreaDetailForm.js

6
src/components/basis/flight/plan/FlightPlanAreaDetailForm.js

@ -94,7 +94,7 @@ const FlightPlanAreaDetailForm = ({ handleSave, handleClose, handleChange, handl
readOnly={coordList[0].lat && (data[0].areaType && data[0].areaType != ("POLYGON")) ? false : true }
placeholder='반경'
value={data ? data[0].bufferZone : ''}
value={data[0].bufferZone ? data[0].bufferZone : ''}
onChange={(e) => {
const {name, value} = e.target;
handleChange({
@ -130,7 +130,7 @@ const FlightPlanAreaDetailForm = ({ handleSave, handleClose, handleChange, handl
name='fltElev'
bsSize='sm'
placeholder='고도'
value={data ? data[0].fltElev : ''}
value={data[0].fltElev ? data[0].fltElev : ''}
onChange={(e) => {
const {name, value} = e.target;
handleChange({
@ -154,7 +154,7 @@ const FlightPlanAreaDetailForm = ({ handleSave, handleClose, handleChange, handl
name='fltMethod'
bsSize='sm'
placeholder='비행 방식'
value={data ? data[0].fltMethod : ''}
value={data[0].fltMethod ? data[0].fltMethod : ''}
onChange={(e) => {
const {name, value} = e.target;
handleChange({

Loading…
Cancel
Save