mirror of
https://github.com/MeshEnvy/mesh-forge.git
synced 2026-05-02 03:22:44 +02:00
profile save fix
This commit is contained in:
@@ -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