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

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