From 69b0e129e04e60a88ea6361d574caee602d18c36 Mon Sep 17 00:00:00 2001 From: x032205 Date: Mon, 6 Oct 2025 14:12:44 -0400 Subject: [PATCH] fix pam forms --- .../PamAccountForm/GenericAccountFields.tsx | 17 +++++++---------- .../components/PamFolderForm.tsx | 14 +++++++------- .../PamResourceForm/GenericResourceFields.tsx | 11 ++++------- 3 files changed, 18 insertions(+), 24 deletions(-) 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 } }) => (