diff --git a/src/components/ProfileEditor.tsx b/src/components/ProfileEditor.tsx index 03a0846..205d1ba 100644 --- a/src/components/ProfileEditor.tsx +++ b/src/components/ProfileEditor.tsx @@ -46,7 +46,12 @@ export default function ProfileEditor({ const onSubmit = async (data: any) => { if (initialData?._id) { - await updateProfile({ id: initialData._id, ...data }); + await updateProfile({ + id: initialData._id, + name: data.name, + targets: data.targets, + config: data.config, + }); } else { await createProfile(data); }