From cf223f008eb60ed8cd52c17763fdd07cf6d8db70 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?kimjh=28=EA=B9=80=EC=9E=A5=ED=98=84=29?= Date: Tue, 22 Nov 2022 14:45:49 +0900 Subject: [PATCH] =?UTF-8?q?=EB=93=9C=EB=A1=A0=20=EA=B4=80=EC=A0=9C=20undef?= =?UTF-8?q?ined=20check?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/map/naver/dron/DronMarker.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/components/map/naver/dron/DronMarker.js b/src/components/map/naver/dron/DronMarker.js index b1121c3..fd6a506 100644 --- a/src/components/map/naver/dron/DronMarker.js +++ b/src/components/map/naver/dron/DronMarker.js @@ -180,7 +180,7 @@ export const DronMarker = props => { markerOption.type = 'DRONE'; gpsCnt.type = 'drone'; } else { - if (user.authId === 'SUPER' || user.authId === 'ADMIN') { + if (user?.authId === 'SUPER' || user?.authId === 'ADMIN') { markerOption.url = FlightIcon; markerOption.type = 'FLIGHT'; gpsCnt.type = 'flight'; @@ -197,7 +197,7 @@ export const DronMarker = props => { } } } else { - if (user.authId === 'SUPER' || user.authId === 'ADMIN') { + if (user?.authId === 'SUPER' || user?.authId === 'ADMIN') { markerOption.url = FlightIcon; markerOption.type = 'FLIGHT'; gpsCnt.type = 'flight';