diff --git a/frontend/src/pages/pam/PamAccountsPage/components/PamAccountForm/GenericAccountFields.tsx b/frontend/src/pages/pam/PamAccountsPage/components/PamAccountForm/GenericAccountFields.tsx index c20800b9e..30e7aaa4d 100644 --- a/frontend/src/pages/pam/PamAccountsPage/components/PamAccountForm/GenericAccountFields.tsx +++ b/frontend/src/pages/pam/PamAccountsPage/components/PamAccountForm/GenericAccountFields.tsx @@ -10,21 +10,18 @@ export const genericAccountFieldsSchema = z.object({ }); export const GenericAccountFields = () => { - const { - formState: { errors }, - control - } = useFormContext<{ name: string; description: string }>(); + const { control } = useFormContext<{ name: string; description: string }>(); return ( <> ( + render={({ field, fieldState: { error } }) => ( @@ -34,10 +31,10 @@ export const GenericAccountFields = () => { ( + render={({ field, fieldState: { error } }) => (