fix: only pass values that are used to edit components
This commit is contained in:
parent
2bcaabc5ae
commit
27a7f73cc7
@ -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;
|
||||
|
@ -13,7 +13,7 @@
|
||||
|
||||
let err: string[] = [];
|
||||
|
||||
let input = new Member(member);
|
||||
let input = new Member({name: member.name, display_name: member.display_name, birthday: member.birthday, pronouns: member.pronouns, color: member.color, description: member.description, banner: member.banner, avatar_url: member.avatar_url});
|
||||
|
||||
const dispatch = createEventDispatcher();
|
||||
|
||||
|
@ -33,7 +33,7 @@
|
||||
dispatch('update', member);
|
||||
}
|
||||
|
||||
let input = new Member(member);
|
||||
let input = new Member({privacy: member.privacy});
|
||||
|
||||
async function submit() {
|
||||
let data = input;
|
||||
|
@ -12,7 +12,7 @@
|
||||
|
||||
let err: string[] = [];
|
||||
|
||||
let input = new Sys(user);
|
||||
let input = new Sys({name: user.name, tag: user.tag, color: user.color, avatar_url: user.avatar_url, banner: user.banner, description: user.description});
|
||||
|
||||
async function submit() {
|
||||
let data = input;
|
||||
|
@ -10,7 +10,7 @@
|
||||
|
||||
let err: string;
|
||||
|
||||
let input = new Sys(user);
|
||||
let input = new Sys({privacy: user.privacy});
|
||||
|
||||
async function submit() {
|
||||
let data = input;
|
||||
|
Loading…
Reference in New Issue
Block a user