mirror of
https://github.com/PluralKit/PluralKit.git
synced 2026-02-08 23:07:54 +00:00
fix: dont overwrite previously added group
This commit is contained in:
parent
75d677d9db
commit
f75867b559
1 changed files with 3 additions and 1 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue