fix(dashboard): fix cards not updating after editing

This commit is contained in:
Jake/Rads 2022-06-23 22:31:50 +02:00
parent 990c2d9f4c
commit a84192f8f7
4 changed files with 13 additions and 33 deletions

View file

@ -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) {