profile save fix

This commit is contained in:
Ben Allfree
2025-11-22 05:36:09 -08:00
parent c6e751bb7a
commit 629e8376dd

View File

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