From 2fde351d087141a0cc75cf8fda97458d56f30f1e Mon Sep 17 00:00:00 2001 From: Anton Tananaev Date: Tue, 28 Jun 2022 07:12:32 -0700 Subject: Check for position (fix #974) --- modern/src/main/StatusCard.js | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) (limited to 'modern/src') diff --git a/modern/src/main/StatusCard.js b/modern/src/main/StatusCard.js index b9237103..b42f9f3a 100644 --- a/modern/src/main/StatusCard.js +++ b/modern/src/main/StatusCard.js @@ -183,12 +183,14 @@ const StatusCard = ({ deviceId, onClose }) => { )} - setAnchorEl(null)}> - navigate(`/position/${position.id}`)}>{t('sharedShowDetails')} - {t('linkGoogleMaps')} - {t('linkAppleMaps')} - {t('linkStreetView')} - + {position && ( + setAnchorEl(null)}> + navigate(`/position/${position.id}`)}>{t('sharedShowDetails')} + {t('linkGoogleMaps')} + {t('linkAppleMaps')} + {t('linkStreetView')} + + )}