Browse Source

운항 스케줄 유효성검사 추가

pull/2/head
kimjh(김장현) 2 years ago
parent
commit
2ec149a740
  1. 8
      src/components/basis/flight/schedule/FlightScheduleGrid.js

8
src/components/basis/flight/schedule/FlightScheduleGrid.js

@ -132,9 +132,11 @@ function FlightScheduleGrid() {
when: row => { when: row => {
if (row.statusCd !== 'S') { if (row.statusCd !== 'S') {
// 현재시간 // 현재시간
const currTime = timeRef.current.lastChild.data const currTime =
.replace(/\:/g, '') timeRef?.current?.lastChild?.data
.substring(0, 4); .replace(/\:/g, '')
.substring(0, 4) || '';
// 현재날짜 // 현재날짜
const currDay = Number(moment().format('YYYYMMDD')); const currDay = Number(moment().format('YYYYMMDD'));

Loading…
Cancel
Save