fix: only pass values that are used to edit components
This commit is contained in:
@@ -11,7 +11,7 @@
|
||||
|
||||
let err: string[] = [];
|
||||
|
||||
let input = new Group(group);
|
||||
let input = new Group({name: group.name, display_name: group.display_name, banner: group.banner, color: group.color, icon: group.icon, description: group.description});
|
||||
|
||||
const dispatch = createEventDispatcher();
|
||||
|
||||
|
@@ -30,7 +30,7 @@
|
||||
dispatch('update', group);
|
||||
}
|
||||
|
||||
let input = new Group(group);
|
||||
let input = new Group({privacy: group.privacy});
|
||||
|
||||
async function submit() {
|
||||
let data = input;
|
||||
|
Reference in New Issue
Block a user