fix: dont overwrite previously added group
This commit is contained in:
parent
75d677d9db
commit
f75867b559
@ -174,7 +174,9 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
function addGroupToList(event: any) {
|
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 = [];
|
group.members = [];
|
||||||
list.push(group);
|
list.push(group);
|
||||||
list = list;
|
list = list;
|
||||||
|
Loading…
Reference in New Issue
Block a user