aboutsummaryrefslogtreecommitdiff
path: root/modern/src
diff options
context:
space:
mode:
authorAnton Tananaev <anton@traccar.org>2023-01-27 13:57:01 -0800
committerAnton Tananaev <anton@traccar.org>2023-01-27 13:57:01 -0800
commitc2f20eb92f9d916df576d6fecc4063c41a089b0e (patch)
tree1e2fb518f89bf967e7de1b2f6777f4519fdba54c /modern/src
parented01ae96f146c3c02fbfa13be7106519609f4d1a (diff)
downloadtrackermap-web-c2f20eb92f9d916df576d6fecc4063c41a089b0e.tar.gz
trackermap-web-c2f20eb92f9d916df576d6fecc4063c41a089b0e.tar.bz2
trackermap-web-c2f20eb92f9d916df576d6fecc4063c41a089b0e.zip
Fix route custom attributes
Diffstat (limited to 'modern/src')
-rw-r--r--modern/src/reports/RouteReportPage.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/modern/src/reports/RouteReportPage.js b/modern/src/reports/RouteReportPage.js
index 011216fd..64bf0a59 100644
--- a/modern/src/reports/RouteReportPage.js
+++ b/modern/src/reports/RouteReportPage.js
@@ -103,7 +103,7 @@ const RouteReportPage = () => {
<TableRow>
<TableCell className={classes.columnAction} />
<TableCell>{t('sharedDevice')}</TableCell>
- {columns.map((key) => (<TableCell key={key}>{positionAttributes[key].name}</TableCell>))}
+ {columns.map((key) => (<TableCell key={key}>{positionAttributes[key]?.name || key}</TableCell>))}
</TableRow>
</TableHead>
<TableBody>