From 2ec149a740d57c7fd6c20c793f2aecc1710cc521 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?kimjh=28=EA=B9=80=EC=9E=A5=ED=98=84=29?= Date: Fri, 7 Oct 2022 13:54:29 +0900 Subject: [PATCH] =?UTF-8?q?=EC=9A=B4=ED=95=AD=20=EC=8A=A4=EC=BC=80?= =?UTF-8?q?=EC=A4=84=20=EC=9C=A0=ED=9A=A8=EC=84=B1=EA=B2=80=EC=82=AC=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 --- .../basis/flight/schedule/FlightScheduleGrid.js | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/src/components/basis/flight/schedule/FlightScheduleGrid.js b/src/components/basis/flight/schedule/FlightScheduleGrid.js index b57c0c7..26a96dd 100644 --- a/src/components/basis/flight/schedule/FlightScheduleGrid.js +++ b/src/components/basis/flight/schedule/FlightScheduleGrid.js @@ -132,9 +132,11 @@ function FlightScheduleGrid() { when: row => { if (row.statusCd !== 'S') { // 현재시간 - const currTime = timeRef.current.lastChild.data - .replace(/\:/g, '') - .substring(0, 4); + const currTime = + timeRef?.current?.lastChild?.data + .replace(/\:/g, '') + .substring(0, 4) || ''; + // 현재날짜 const currDay = Number(moment().format('YYYYMMDD'));