From 629e8376ddd46ceddb77a44114d8db0a88abfb49 Mon Sep 17 00:00:00 2001 From: Ben Allfree Date: Sat, 22 Nov 2025 05:36:09 -0800 Subject: [PATCH] profile save fix --- src/components/ProfileEditor.tsx | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) 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); }