fix(frontend): apply props destructuring

This commit is contained in:
yassinedorbozgithub 2024-10-07 16:31:50 +01:00
parent 6c17ee98b2
commit d214ea3e48

View File

@ -141,13 +141,13 @@ export const EditContentTypeFieldsDialog = ({
{t("title.manage_fields")} {t("title.manage_fields")}
</DialogTitle> </DialogTitle>
<form <form
onSubmit={handleSubmit(async (data) => { onSubmit={handleSubmit(async ({ name, fields }) => {
if (!!contentType) if (!!contentType)
await updateContentType({ await updateContentType({
id: contentType.id, id: contentType.id,
params: { params: {
fields: data.fields, name,
name: data.name, fields,
}, },
}); });
handleClose(); handleClose();