From a0d0bc2903bcf24f94ab6fb984d64b01986cc979 Mon Sep 17 00:00:00 2001 From: Jake/Rads Date: Sat, 25 Jun 2022 22:31:23 +0200 Subject: [PATCH] fix(dashboard): fix duplication after member creation aka: what in the actual world was i doing here --- dashboard/src/lib/list/List.svelte | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/dashboard/src/lib/list/List.svelte b/dashboard/src/lib/list/List.svelte index 81d0cc82..c95ecfaa 100644 --- a/dashboard/src/lib/list/List.svelte +++ b/dashboard/src/lib/list/List.svelte @@ -85,14 +85,11 @@ function addItemToList(event: any) { if (itemType === "member") { members.push(event.detail); - members = members; + list = members; } else if (itemType === "group") { - + groups.push(event.detail); + list = groups; } - - - list.push(event.detail); - list = list; } /* function updateList(event: any) {