diff options
author | Anton Tananaev <anton@traccar.org> | 2022-10-07 07:54:04 -0700 |
---|---|---|
committer | Anton Tananaev <anton@traccar.org> | 2022-10-07 07:54:04 -0700 |
commit | ac8adb34066745322297ae5a63feb00724d503a6 (patch) | |
tree | 68e016d2e8e10f29293775410cc50c05626f019d /modern/src/main/MainPage.js | |
parent | af52f4291dafef3f224d7a472b2fbcbe47dc2924 (diff) | |
download | trackermap-web-ac8adb34066745322297ae5a63feb00724d503a6.tar.gz trackermap-web-ac8adb34066745322297ae5a63feb00724d503a6.tar.bz2 trackermap-web-ac8adb34066745322297ae5a63feb00724d503a6.zip |
Fix missing group permission
Diffstat (limited to 'modern/src/main/MainPage.js')
-rw-r--r-- | modern/src/main/MainPage.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/modern/src/main/MainPage.js b/modern/src/main/MainPage.js index 3669dd50..90e1b920 100644 --- a/modern/src/main/MainPage.js +++ b/modern/src/main/MainPage.js @@ -196,7 +196,7 @@ const MainPage = () => { let { groupId } = device; while (groupId) { groupIds.push(groupId); - groupId = groups[groupId].groupId; + groupId = groups[groupId]?.groupId || 0; } return groupIds; }; |