fix: only pass values that are used to edit components

This commit is contained in:
Spectralitree 2022-01-12 10:47:13 +01:00
parent 2bcaabc5ae
commit 27a7f73cc7
6 changed files with 6 additions and 6 deletions

View File

@ -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();

View File

@ -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;

View File

@ -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();

View File

@ -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;

View File

@ -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;

View File

@ -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;