From f75867b5590fea2c1ac88f87322ad2b8c7a77b9c Mon Sep 17 00:00:00 2001 From: Draconizations Date: Thu, 28 Apr 2022 20:29:23 +0200 Subject: [PATCH] fix: dont overwrite previously added group --- src/lib/group/List.svelte | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/lib/group/List.svelte b/src/lib/group/List.svelte index 8356e020..61084441 100644 --- a/src/lib/group/List.svelte +++ b/src/lib/group/List.svelte @@ -174,7 +174,9 @@ } function addGroupToList(event: any) { - let group = event.detail; + // reference types my beloathed + // the stringify/parse sequence is here so that a previous added group doesn't get overwritten + let group = JSON.parse(JSON.stringify(event.detail)); group.members = []; list.push(group); list = list;