diff options
author | Anton Tananaev <anton@traccar.org> | 2023-06-14 05:58:04 -0700 |
---|---|---|
committer | Anton Tananaev <anton@traccar.org> | 2023-06-14 05:58:04 -0700 |
commit | cd5b1513be814f27dcb6196779af772d9fdf656f (patch) | |
tree | 787fad218eebc53e6a5b3a9b72f2cbadc2aca6c7 /modern/src/settings | |
parent | 0810d3fc2a2fc17131cffb442e7f050467275693 (diff) | |
download | trackermap-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.js | 2 |
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> |