mirror of
https://github.com/hexastack/hexabot
synced 2025-01-23 02:47:56 +00:00
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:
commit
ddb5e896de
@ -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();
|
||||||
|
Loading…
Reference in New Issue
Block a user