mirror of
https://github.com/hexastack/hexabot
synced 2025-01-22 18:45:57 +00:00
fix(frontend): apply props destructuring
This commit is contained in:
parent
6c17ee98b2
commit
d214ea3e48
@ -141,13 +141,13 @@ export const EditContentTypeFieldsDialog = ({
|
||||
{t("title.manage_fields")}
|
||||
</DialogTitle>
|
||||
<form
|
||||
onSubmit={handleSubmit(async (data) => {
|
||||
onSubmit={handleSubmit(async ({ name, fields }) => {
|
||||
if (!!contentType)
|
||||
await updateContentType({
|
||||
id: contentType.id,
|
||||
params: {
|
||||
fields: data.fields,
|
||||
name: data.name,
|
||||
name,
|
||||
fields,
|
||||
},
|
||||
});
|
||||
handleClose();
|
||||
|
Loading…
Reference in New Issue
Block a user