fix: members only groups

This commit is contained in:
Timothy Jaeryang Baek
2026-01-12 21:53:41 +04:00
parent 7da37b4f66
commit 5a075a2c83
3 changed files with 16 additions and 9 deletions

View File

@@ -42,7 +42,10 @@
};
onMount(async () => {
groups = await getGroups(localStorage.token, true);
groups = await getGroups(localStorage.token, true).catch((error) => {
console.error(error);
return [];
});
if (accessControl === null) {
initPublicAccess();

View File

@@ -65,7 +65,11 @@
}
onMount(async () => {
groups = await getGroups(localStorage.token, true);
groups = await getGroups(localStorage.token, true).catch((error) => {
console.error(error);
return [];
});
if (userIds.length > 0) {
userIds.forEach(async (id) => {
const res = await getUserById(localStorage.token, id).catch((error) => {