diff --git a/frontend/admin/core/views/core/langs/create-edit/hooks/use-create-edit-lang-admin.tsx b/frontend/admin/core/views/core/langs/create-edit/hooks/use-create-edit-lang-admin.tsx index d09ddadad..5fab6cc23 100644 --- a/frontend/admin/core/views/core/langs/create-edit/hooks/use-create-edit-lang-admin.tsx +++ b/frontend/admin/core/views/core/langs/create-edit/hooks/use-create-edit-lang-admin.tsx @@ -66,7 +66,7 @@ export const useCreateEditLangAdmin = ({ data }: Args) => { toast(t(data ? "edit.success" : "create.success"), { description: values.name }); - setOpen(false); + setOpen?.(false); }; return { diff --git a/frontend/admin/core/views/core/langs/table/actions/download/hooks/use-download-lang-admin.ts b/frontend/admin/core/views/core/langs/table/actions/download/hooks/use-download-lang-admin.ts index a2ab021ef..3db8a7ee5 100644 --- a/frontend/admin/core/views/core/langs/table/actions/download/hooks/use-download-lang-admin.ts +++ b/frontend/admin/core/views/core/langs/table/actions/download/hooks/use-download-lang-admin.ts @@ -49,7 +49,7 @@ export const useDownloadLangAdmin = ({ return; } - setOpen(false); + setOpen?.(false); window.open( `${CONFIG.backend_url}/files/${mutation.data.admin__core_languages__download}`, diff --git a/frontend/admin/core/views/core/langs/table/actions/update/hooks/use-update-lang-admin.ts b/frontend/admin/core/views/core/langs/table/actions/update/hooks/use-update-lang-admin.ts index b25d70040..84f85156b 100644 --- a/frontend/admin/core/views/core/langs/table/actions/update/hooks/use-update-lang-admin.ts +++ b/frontend/admin/core/views/core/langs/table/actions/update/hooks/use-update-lang-admin.ts @@ -40,7 +40,7 @@ export const useUpdateLangAdmin = ({ return; } - setOpen(false); + setOpen?.(false); toast.success(t("success"), { description: name }); diff --git a/frontend/admin/core/views/core/plugins/actions/create/hooks/use-create-plugin-admin.ts b/frontend/admin/core/views/core/plugins/actions/create/hooks/use-create-plugin-admin.ts index e52b3db65..c2b619e53 100644 --- a/frontend/admin/core/views/core/plugins/actions/create/hooks/use-create-plugin-admin.ts +++ b/frontend/admin/core/views/core/plugins/actions/create/hooks/use-create-plugin-admin.ts @@ -69,7 +69,7 @@ export const useCreatePluginAdmin = () => { description: values.name }); - setOpen(false); + setOpen?.(false); }; return { diff --git a/frontend/admin/core/views/core/styles/nav/create-edit/hooks/use-create-edit-nav-admin.ts b/frontend/admin/core/views/core/styles/nav/create-edit/hooks/use-create-edit-nav-admin.ts index 087119614..52ae0ab28 100644 --- a/frontend/admin/core/views/core/styles/nav/create-edit/hooks/use-create-edit-nav-admin.ts +++ b/frontend/admin/core/views/core/styles/nav/create-edit/hooks/use-create-edit-nav-admin.ts @@ -71,7 +71,7 @@ export const useCreateEditNavAdmin = ({ data }: CreateEditNavAdminArgs) => { description: convertText(values.name) }); - setOpen(false); + setOpen?.(false); }; return { diff --git a/frontend/admin/core/views/core/styles/nav/table/actions/delete/content.tsx b/frontend/admin/core/views/core/styles/nav/table/actions/delete/content.tsx index 4622f2df7..b226bc52b 100644 --- a/frontend/admin/core/views/core/styles/nav/table/actions/delete/content.tsx +++ b/frontend/admin/core/views/core/styles/nav/table/actions/delete/content.tsx @@ -28,7 +28,7 @@ export const ContentDeleteActionTableNavAdmin = ({ return (