feat(cms): content not getting updated removed extras

This commit is contained in:
Amit Ranjan 2024-10-02 14:17:12 +05:30
parent f8a6eb80ff
commit 2d11ed2c43

View File

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