From 099e349a903e311b4ae2ee31b3fc181c9be05f76 Mon Sep 17 00:00:00 2001 From: Aine Date: Thu, 21 Nov 2024 21:16:39 +0200 Subject: [PATCH] Add missing "generate password" button to the user create form; fix password's helperText --- src/resources/users.tsx | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/src/resources/users.tsx b/src/resources/users.tsx index 950deff..a551218 100644 --- a/src/resources/users.tsx +++ b/src/resources/users.tsx @@ -284,7 +284,7 @@ export const UserCreate = (props: CreateProps) => { > - + @@ -386,16 +386,12 @@ const UserPasswordInput = props => { const generatePassword = () => { const password = generateRandomPassword(); - if (record) { - form.setValue("password", password, { shouldDirty: true }); - } + form.setValue("password", password, { shouldDirty: true }); }; return ( <> - +