Merge pull request #170 from Hexastack/169-issue-content-types-update-dont-apply-the-change

fix(frontend): content type update cache issue
This commit is contained in:
Mohamed Marrouchi 2024-10-07 18:02:36 +01:00 committed by GitHub
commit ddb5e896de
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

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