fix: content list not getting updated in modal

This commit is contained in:
Amit Ranjan
2024-10-01 03:56:30 +05:30
parent 6a863e3be0
commit 49e71ed9d1

View File

@@ -162,7 +162,10 @@ export const ContentDialog: FC<ContentDialogProps> = ({
const onSubmitForm = async (params: IContentAttributes) => {
if (content) {
updateContent(
{ id: content.id, params },
{
id: content.id,
params: { ...params, entity: (params.entity as any).id },
},
{
onError: () => {
toast.error(t("message.internal_server_error"));