aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAnton Tananaev <anton@traccar.org>2022-10-07 07:54:04 -0700
committerAnton Tananaev <anton@traccar.org>2022-10-07 07:54:04 -0700
commitac8adb34066745322297ae5a63feb00724d503a6 (patch)
tree68e016d2e8e10f29293775410cc50c05626f019d
parentaf52f4291dafef3f224d7a472b2fbcbe47dc2924 (diff)
downloadtrackermap-web-ac8adb34066745322297ae5a63feb00724d503a6.tar.gz
trackermap-web-ac8adb34066745322297ae5a63feb00724d503a6.tar.bz2
trackermap-web-ac8adb34066745322297ae5a63feb00724d503a6.zip
Fix missing group permission
-rw-r--r--modern/src/main/MainPage.js2
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;
};