Browse Source

드론 관제 undefined check

ctrlDraw
김장현 2 years ago
parent
commit
cf223f008e
  1. 4
      src/components/map/naver/dron/DronMarker.js

4
src/components/map/naver/dron/DronMarker.js

@ -180,7 +180,7 @@ export const DronMarker = props => {
markerOption.type = 'DRONE'; markerOption.type = 'DRONE';
gpsCnt.type = 'drone'; gpsCnt.type = 'drone';
} else { } else {
if (user.authId === 'SUPER' || user.authId === 'ADMIN') { if (user?.authId === 'SUPER' || user?.authId === 'ADMIN') {
markerOption.url = FlightIcon; markerOption.url = FlightIcon;
markerOption.type = 'FLIGHT'; markerOption.type = 'FLIGHT';
gpsCnt.type = 'flight'; gpsCnt.type = 'flight';
@ -197,7 +197,7 @@ export const DronMarker = props => {
} }
} }
} else { } else {
if (user.authId === 'SUPER' || user.authId === 'ADMIN') { if (user?.authId === 'SUPER' || user?.authId === 'ADMIN') {
markerOption.url = FlightIcon; markerOption.url = FlightIcon;
markerOption.type = 'FLIGHT'; markerOption.type = 'FLIGHT';
gpsCnt.type = 'flight'; gpsCnt.type = 'flight';

Loading…
Cancel
Save