From d214ea3e4849f37ab69e72e3a46533e407c49576 Mon Sep 17 00:00:00 2001 From: yassinedorbozgithub Date: Mon, 7 Oct 2024 16:31:50 +0100 Subject: [PATCH] fix(frontend): apply props destructuring --- .../content-types/EditContentTypeFieldsDialog.tsx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/frontend/src/components/content-types/EditContentTypeFieldsDialog.tsx b/frontend/src/components/content-types/EditContentTypeFieldsDialog.tsx index d02e58c0..a2437e75 100644 --- a/frontend/src/components/content-types/EditContentTypeFieldsDialog.tsx +++ b/frontend/src/components/content-types/EditContentTypeFieldsDialog.tsx @@ -141,13 +141,13 @@ export const EditContentTypeFieldsDialog = ({ {t("title.manage_fields")}
{ + onSubmit={handleSubmit(async ({ name, fields }) => { if (!!contentType) await updateContentType({ id: contentType.id, params: { - fields: data.fields, - name: data.name, + name, + fields, }, }); handleClose();