mirror of
https://github.com/MeshEnvy/mesh-forge.git
synced 2026-11-08 14:02:23 +01:00
profile save fix
This commit is contained in:
1 parent
c6e751bb7a
commit
629e8376dd
1 file changed
+6
-1
@@ -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);
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user