From ac910938475342add9f088c1ec0e930623bb52a0 Mon Sep 17 00:00:00 2001 From: Jake Fulmine Date: Sun, 4 Jun 2023 09:46:44 +0200 Subject: [PATCH] fix(dashboard): pass all arguments to list filtering (fix broken member/group pages) --- dashboard/src/routes/Dash/Group/Group.svelte | 2 +- dashboard/src/routes/Dash/Member/Member.svelte | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/dashboard/src/routes/Dash/Group/Group.svelte b/dashboard/src/routes/Dash/Group/Group.svelte index 3c6833ab..576b2d17 100644 --- a/dashboard/src/routes/Dash/Group/Group.svelte +++ b/dashboard/src/routes/Dash/Group/Group.svelte @@ -131,7 +131,7 @@ } $: groupMembers = $members.filter(m => group.members.includes(m.uuid)); - $: processedList = filterList(groupMembers, listOptions); + $: processedList = filterList(groupMembers, $groups, listOptions); $: currentPage = paginateList(processedList, pageOptions); $: pageAmount = getPageAmount(processedList, pageOptions); diff --git a/dashboard/src/routes/Dash/Member/Member.svelte b/dashboard/src/routes/Dash/Member/Member.svelte index c2a7104a..e943d988 100644 --- a/dashboard/src/routes/Dash/Member/Member.svelte +++ b/dashboard/src/routes/Dash/Member/Member.svelte @@ -134,7 +134,7 @@ } $: memberGroups = $groups.filter(g => g.members.includes(member.uuid)); - $: processedList = filterList(memberGroups, listOptions); + $: processedList = filterList(memberGroups, $groups,listOptions); $: currentPage = paginateList(processedList, pageOptions); $: pageAmount = getPageAmount(processedList, pageOptions);