fix(dashboard): pass all arguments to list filtering (fix broken member/group pages)

This commit is contained in:
Jake Fulmine 2023-06-04 09:46:44 +02:00
parent c3ade8f455
commit ac91093847
2 changed files with 2 additions and 2 deletions

View File

@ -131,7 +131,7 @@
} }
$: groupMembers = $members.filter(m => group.members.includes(m.uuid)); $: groupMembers = $members.filter(m => group.members.includes(m.uuid));
$: processedList = filterList(groupMembers, listOptions); $: processedList = filterList(groupMembers, $groups, listOptions);
$: currentPage = paginateList(processedList, pageOptions); $: currentPage = paginateList(processedList, pageOptions);
$: pageAmount = getPageAmount(processedList, pageOptions); $: pageAmount = getPageAmount(processedList, pageOptions);

View File

@ -134,7 +134,7 @@
} }
$: memberGroups = $groups.filter(g => g.members.includes(member.uuid)); $: memberGroups = $groups.filter(g => g.members.includes(member.uuid));
$: processedList = filterList(memberGroups, listOptions); $: processedList = filterList(memberGroups, $groups,listOptions);
$: currentPage = paginateList(processedList, pageOptions); $: currentPage = paginateList(processedList, pageOptions);
$: pageAmount = getPageAmount(processedList, pageOptions); $: pageAmount = getPageAmount(processedList, pageOptions);
</script> </script>