feat(dashboard): reset new member/group input after submit
This commit is contained in:
@@ -30,7 +30,7 @@
|
||||
dispatch('create', input);
|
||||
}
|
||||
|
||||
let input: Group = defaultGroup;
|
||||
let input: Group = JSON.parse(JSON.stringify(defaultGroup));
|
||||
|
||||
async function submit() {
|
||||
let data = input;
|
||||
@@ -51,7 +51,7 @@
|
||||
loading = true;
|
||||
try {
|
||||
let res = await api().groups().post({data});
|
||||
input = res;
|
||||
input = JSON.parse(JSON.stringify(defaultGroup));
|
||||
err = [];
|
||||
create();
|
||||
message = `Group ${data.name} successfully created!`
|
||||
|
||||
Reference in New Issue
Block a user