fix(dashboard): actually delete members from list

This commit is contained in:
Jake/Rads 2022-06-25 22:31:53 +02:00
parent a0d0bc2903
commit 0c3eeae420

View File

@ -101,7 +101,13 @@
} */ } */
function updateDelete(event: any) { function updateDelete(event: any) {
list = (list as any[]).filter(item => item.id !== event.detail); if (itemType === "member") {
members = members.filter(m => m.id !== event.detail);
list = members;
} else if (itemType === "group") {
groups = groups.filter(g => g.id !== event.detail);
list = groups;
}
} }
function getItemLink(item: Member | Group): string { function getItemLink(item: Member | Group): string {