fix: dont overwrite previously added group

This commit is contained in:
Draconizations 2022-04-28 20:29:23 +02:00
parent 75d677d9db
commit f75867b559

View File

@ -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;