diff --git a/src/lib/group/Edit.svelte b/src/lib/group/Edit.svelte index 636caac7..b458c882 100644 --- a/src/lib/group/Edit.svelte +++ b/src/lib/group/Edit.svelte @@ -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(); diff --git a/src/lib/group/Privacy.svelte b/src/lib/group/Privacy.svelte index 4b89e424..9039ec5a 100644 --- a/src/lib/group/Privacy.svelte +++ b/src/lib/group/Privacy.svelte @@ -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; diff --git a/src/lib/member/Edit.svelte b/src/lib/member/Edit.svelte index c78aff96..c07485c7 100644 --- a/src/lib/member/Edit.svelte +++ b/src/lib/member/Edit.svelte @@ -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(); diff --git a/src/lib/member/Privacy.svelte b/src/lib/member/Privacy.svelte index d0c387cc..75d31afc 100644 --- a/src/lib/member/Privacy.svelte +++ b/src/lib/member/Privacy.svelte @@ -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; diff --git a/src/lib/system/Edit.svelte b/src/lib/system/Edit.svelte index ac3ae285..30f61467 100644 --- a/src/lib/system/Edit.svelte +++ b/src/lib/system/Edit.svelte @@ -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; diff --git a/src/lib/system/PrivacyEdit.svelte b/src/lib/system/PrivacyEdit.svelte index 938e5947..2fe633e7 100644 --- a/src/lib/system/PrivacyEdit.svelte +++ b/src/lib/system/PrivacyEdit.svelte @@ -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;