aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAnton Tananaev <anton@traccar.org>2022-11-01 09:17:16 -0700
committerAnton Tananaev <anton@traccar.org>2022-11-01 09:17:16 -0700
commitf99734fafca208af8fd18f7664c68d81a8adcc72 (patch)
tree5f3172c2d6afdf8b805ecd435e7ffa07e09b2ded
parent0d4fc56fa3f44e71dfc8affe889c3a6cfab04652 (diff)
downloadtrackermap-web-f99734fafca208af8fd18f7664c68d81a8adcc72.tar.gz
trackermap-web-f99734fafca208af8fd18f7664c68d81a8adcc72.tar.bz2
trackermap-web-f99734fafca208af8fd18f7664c68d81a8adcc72.zip
Fix event page (fix #1044)
-rw-r--r--modern/src/other/EventPage.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/modern/src/other/EventPage.js b/modern/src/other/EventPage.js
index 8adc142c..c8d84d5e 100644
--- a/modern/src/other/EventPage.js
+++ b/modern/src/other/EventPage.js
@@ -83,7 +83,7 @@ const EventPage = () => {
<IconButton color="inherit" edge="start" sx={{ mr: 2 }} onClick={() => navigate('/')}>
<ArrowBackIcon />
</IconButton>
- <Typography variant="h6">{formatType(event)}</Typography>
+ <Typography variant="h6">{event && formatType(event)}</Typography>
</Toolbar>
</AppBar>
<div className={classes.mapContainer}>