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 ( <> - +