aboutsummaryrefslogtreecommitdiff
path: root/modern/src/settings
diff options
context:
space:
mode:
authorAnton Tananaev <anton@traccar.org>2023-06-14 05:58:04 -0700
committerAnton Tananaev <anton@traccar.org>2023-06-14 05:58:04 -0700
commitcd5b1513be814f27dcb6196779af772d9fdf656f (patch)
tree787fad218eebc53e6a5b3a9b72f2cbadc2aca6c7 /modern/src/settings
parent0810d3fc2a2fc17131cffb442e7f050467275693 (diff)
downloadtrackermap-web-cd5b1513be814f27dcb6196779af772d9fdf656f.tar.gz
trackermap-web-cd5b1513be814f27dcb6196779af772d9fdf656f.tar.bz2
trackermap-web-cd5b1513be814f27dcb6196779af772d9fdf656f.zip
Handle missing group
Diffstat (limited to 'modern/src/settings')
-rw-r--r--modern/src/settings/DevicesPage.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/modern/src/settings/DevicesPage.js b/modern/src/settings/DevicesPage.js
index 5f356964..5ef5aae5 100644
--- a/modern/src/settings/DevicesPage.js
+++ b/modern/src/settings/DevicesPage.js
@@ -76,7 +76,7 @@ const DevicesPage = () => {
<TableRow key={item.id}>
<TableCell>{item.name}</TableCell>
<TableCell>{item.uniqueId}</TableCell>
- <TableCell>{item.groupId ? groups[item.groupId].name : null}</TableCell>
+ <TableCell>{item.groupId ? groups[item.groupId]?.name : null}</TableCell>
<TableCell>{item.phone}</TableCell>
<TableCell>{item.model}</TableCell>
<TableCell>{item.contact}</TableCell>