mirror of
https://github.com/PluralKit/PluralKit.git
synced 2026-02-04 04:56:49 +00:00
fix(dashboard): fix groups not appearing on public member page
This commit is contained in:
parent
08d050a827
commit
6a1b584121
1 changed files with 2 additions and 2 deletions
|
|
@ -87,7 +87,7 @@
|
|||
async function fetchGroups() {
|
||||
try {
|
||||
let memberGroups: Group[] = await api().members($params.id).groups().get({auth: !isPublic });
|
||||
memberGroups.forEach(g => g.members = [])
|
||||
if (!isPublic) memberGroups.forEach(g => g.members = [])
|
||||
groups.set(memberGroups)
|
||||
|
||||
if (!isPublic) {
|
||||
|
|
@ -136,7 +136,7 @@
|
|||
}
|
||||
}
|
||||
|
||||
$: memberGroups = $groups.filter(g => g.members.includes(member.uuid));
|
||||
$: memberGroups = !isPublic ? $groups.filter(g => g.members.includes(member.uuid)) : $groups;
|
||||
$: processedList = filterList(memberGroups, $groups,listOptions);
|
||||
$: currentPage = paginateList(processedList, pageOptions);
|
||||
$: pageAmount = getPageAmount(processedList, pageOptions);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue