mirror of
https://github.com/PluralKit/PluralKit.git
synced 2026-02-16 10:40:12 +00:00
fix(dashboard): fix cards not updating after editing
This commit is contained in:
parent
990c2d9f4c
commit
a84192f8f7
4 changed files with 13 additions and 33 deletions
|
|
@ -13,14 +13,10 @@
|
|||
|
||||
let err: string[] = [];
|
||||
|
||||
let input: Group = {...group};
|
||||
let input: Group = group;
|
||||
|
||||
const dispatch = createEventDispatcher();
|
||||
|
||||
function update() {
|
||||
dispatch('update', group);
|
||||
}
|
||||
|
||||
function deletion() {
|
||||
dispatch('deletion', group.id);
|
||||
}
|
||||
|
|
@ -45,7 +41,6 @@
|
|||
let res = await api().groups(group.id).patch({data});
|
||||
group = {...group, ...res};
|
||||
err = [];
|
||||
update();
|
||||
editMode = false;
|
||||
loading = false;
|
||||
} catch (error) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue