|
|
@ -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'; |
|
|
|